From b5f1a973d22bebe668c1922517b6e20cf167fb08 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sun, 13 Feb 2022 20:20:42 +0900 Subject: [PATCH] =?utf8?q?`{`,=20`}`=20=E3=81=AE=E5=89=8D=E5=BE=8C?= =?utf8?q?=E3=81=AB=E3=82=B9=E3=83=9A=E3=83=BC=E3=82=B9=E3=82=92=E5=85=A5?= =?utf8?q?=E3=82=8C=E3=82=8B=20(SA1012,=20SA1013)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween.Tests/Api/TwitterApiStatusTest.cs | 8 +++---- OpenTween.Tests/MyCommonTest.cs | 2 +- OpenTween/Growl.cs | 34 +++++++++++++++++------------ 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/OpenTween.Tests/Api/TwitterApiStatusTest.cs b/OpenTween.Tests/Api/TwitterApiStatusTest.cs index 0c871269..e9511b95 100644 --- a/OpenTween.Tests/Api/TwitterApiStatusTest.cs +++ b/OpenTween.Tests/Api/TwitterApiStatusTest.cs @@ -130,19 +130,19 @@ namespace OpenTween.Api public static readonly TheoryData, TwitterApiAccessLevel?> ParseAccessLevel_TestCase = new TheoryData, TwitterApiAccessLevel?> { { - new Dictionary { {"X-Access-Level", "read"} }, + new Dictionary { { "X-Access-Level", "read" } }, TwitterApiAccessLevel.Read }, { - new Dictionary { {"X-Access-Level", "read-write"} }, + new Dictionary { { "X-Access-Level", "read-write" } }, TwitterApiAccessLevel.ReadWrite }, { - new Dictionary { {"X-Access-Level", "read-write-directmessages"} }, + new Dictionary { { "X-Access-Level", "read-write-directmessages" } }, TwitterApiAccessLevel.ReadWriteAndDirectMessage }, { - new Dictionary { {"X-Access-Level", ""} }, // 何故かたまに出てくるやつ + new Dictionary { { "X-Access-Level", "" } }, // 何故かたまに出てくるやつ null }, { diff --git a/OpenTween.Tests/MyCommonTest.cs b/OpenTween.Tests/MyCommonTest.cs index 6c04b36a..6845ad6d 100644 --- a/OpenTween.Tests/MyCommonTest.cs +++ b/OpenTween.Tests/MyCommonTest.cs @@ -189,7 +189,7 @@ namespace OpenTween "https://twitter.com/Favstar_LM/status/249493863826350080" }, { - new PostClass { StatusId = 216033842434289664L, ScreenName = "haru067", RetweetedId = 200245741443235840L, RetweetedBy = "re4k"}, + new PostClass { StatusId = 216033842434289664L, ScreenName = "haru067", RetweetedId = 200245741443235840L, RetweetedBy = "re4k" }, "https://twitter.com/haru067/status/200245741443235840" }, }; diff --git a/OpenTween/Growl.cs b/OpenTween/Growl.cs index c519852f..0b05b086 100644 --- a/OpenTween/Growl.cs +++ b/OpenTween/Growl.cs @@ -291,15 +291,18 @@ namespace OpenTween BindingFlags.CreateInstance, null, _connector, - new object[] {AppName, - notificationName, - id, - title, - text, - res, - false, - priority, - "aaa"}, + new object[] + { + AppName, + notificationName, + id, + title, + text, + res, + false, + priority, + "aaa", + }, CultureInfo.InvariantCulture); } else @@ -309,11 +312,14 @@ namespace OpenTween BindingFlags.CreateInstance, null, _connector, - new object[] {AppName, - notificationName, - id, - title, - text}, + new object[] + { + AppName, + notificationName, + id, + title, + text, + }, CultureInfo.InvariantCulture); } var cc = _connector.GetType("Growl.Connector.CallbackContext").InvokeMember( -- 2.11.0