Skip to content

Commit df4d571

Browse files
chore: configureawait
1 parent 56b7372 commit df4d571

31 files changed

+91
-77
lines changed

src/Nullinside.Api.TwitchBot.Tests/ChatRules/AChatRuleUnitTestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public async Task TestItDoesntAlwaysFail(string goodString) {
2525

2626
// Process the message and assert that we pass the message.
2727
var chat = new TwitchChatMessage(true, goodString, "123", "456");
28-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
28+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
2929
Assert.That(result, Is.True);
3030

3131
// Process the message and assert that we pass the message.
3232
chat = new TwitchChatMessage(false, goodString, "123", "456");
33-
result = await rule.Handle("123", botProxy.Object, chat, _db);
33+
result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
3434
Assert.That(result, Is.True);
3535
}
3636

src/Nullinside.Api.TwitchBot.Tests/ChatRules/BestCheapViewersTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public async Task TestKnownStrings(string badString) {
5050
var chat = new TwitchChatMessage(true, badString, "123", "456");
5151

5252
// Process the message and assert that we fail the message.
53-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
53+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
5454
Assert.That(result, Is.False);
5555
}
5656
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/BotsisterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task TestKnownStrings(string badString) {
2222
var chat = new TwitchChatMessage(true, badString, "123", "456");
2323

2424
// Process the message and assert that we fail the message.
25-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
25+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
2626
Assert.That(result, Is.False);
2727
}
2828
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task TestKnownStrings(string badString) {
3535
var chat = new TwitchChatMessage(true, badString, "123", "456");
3636

3737
// Process the message and assert that we fail the message.
38-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
38+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
3939
Assert.That(result, Is.False);
4040
}
4141

@@ -52,7 +52,7 @@ public async Task EnsureNoFalsePositives(string message) {
5252
var chat = new TwitchChatMessage(true, message, "123", "456");
5353

5454
// Process the message and assert that we do not fail the message.
55-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
55+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
5656
Assert.That(result, Is.True);
5757
}
5858
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/DoghypeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public async Task TestKnownStrings(string badString) {
2525
var chat = new TwitchChatMessage(true, badString, "123", "456");
2626

2727
// Process the message and assert that we fail the message.
28-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
28+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
2929
Assert.That(result, Is.False);
3030
}
3131
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/NezhnaTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public async Task TestKnownStrings(string badString) {
2626
var chat = new TwitchChatMessage(true, badString, "123", "456");
2727

2828
// Process the message and assert that we fail the message.
29-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
29+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
3030
Assert.That(result, Is.False);
3131
}
3232
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/StreamBooTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public async Task TestKnownStrings(string badString) {
2525
var chat = new TwitchChatMessage(true, badString, "123", "456");
2626

2727
// Process the message and assert that we fail the message.
28-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
28+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
2929
Assert.That(result, Is.False);
3030
}
3131
}

src/Nullinside.Api.TwitchBot.Tests/ChatRules/StreamViewersTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public async Task TestKnownStrings(string badString) {
2828
var chat = new TwitchChatMessage(true, badString, "123", "456");
2929

3030
// Process the message and assert that we fail the message.
31-
bool result = await rule.Handle("123", botProxy.Object, chat, _db);
31+
bool result = await rule.Handle("123", botProxy.Object, chat, _db).ConfigureAwait(false);
3232
Assert.That(result, Is.False);
3333
}
3434
}

src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.7" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.7" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.7"/>
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.7"/>
2020
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
2121
<PackageReference Include="Moq" Version="4.20.72"/>
2222
<PackageReference Include="NUnit" Version="4.3.2"/>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<wpf:ResourceDictionary xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2+
xmlns:s="clr-namespace:System;assembly=mscorlib"
3+
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xml:space="preserve">
5+
<s:String x:Key="/Default/CodeInspection/Daemon/ConfigureAwaitAnalysisMode/@EntryValue">Library</s:String></wpf:ResourceDictionary>

0 commit comments

Comments
 (0)