Skip to content

Commit

Permalink
remove configureawait from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvreony committed Nov 20, 2023
1 parent 91f0ea6 commit f0801b2
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg7,
arg8,
arg9,
arg10)).ConfigureAwait(false);
arg10));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg8,
arg9,
arg10,
arg11)).ConfigureAwait(false);
arg11));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg9,
arg10,
arg11,
arg12)).ConfigureAwait(false);
arg12));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg10,
arg11,
arg12,
arg13)).ConfigureAwait(false);
arg13));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg11,
arg12,
arg13,
arg14)).ConfigureAwait(false);
arg14));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg12,
arg13,
arg14,
arg15)).ConfigureAwait(false);
arg15));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg13,
arg14,
arg15,
arg16)).ConfigureAwait(false);
arg16));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<FakeObject>
FakeObject arg,
string expectedParameterNameForException)
{
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(arg)).ConfigureAwait(false);
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(arg));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
{
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(
arg1,
arg2)).ConfigureAwait(false);
arg2));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(
arg1,
arg2,
arg3)).ConfigureAwait(false);
arg3));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg1,
arg2,
arg3,
arg4)).ConfigureAwait(false);
arg4));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg2,
arg3,
arg4,
arg5)).ConfigureAwait(false);
arg5));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg3,
arg4,
arg5,
arg6)).ConfigureAwait(false);
arg6));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg4,
arg5,
arg6,
arg7)).ConfigureAwait(false);
arg7));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg5,
arg6,
arg7,
arg8)).ConfigureAwait(false);
arg8));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public sealed class Throws : ITestAsyncMethodWithNullableParameters<
arg6,
arg7,
arg8,
arg9)).ConfigureAwait(false);
arg9));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg7?.Object,
arg8?.Object,
arg9?.Object,
arg10?.Object)).ConfigureAwait(false);
arg10?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg8?.Object,
arg9?.Object,
arg10?.Object,
arg11?.Object)).ConfigureAwait(false);
arg11?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg9?.Object,
arg10?.Object,
arg11?.Object,
arg12?.Object)).ConfigureAwait(false);
arg12?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg10?.Object,
arg11?.Object,
arg12?.Object,
arg13?.Object)).ConfigureAwait(false);
arg13?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg11?.Object,
arg12?.Object,
arg13?.Object,
arg14?.Object)).ConfigureAwait(false);
arg14?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg12?.Object,
arg13?.Object,
arg14?.Object,
arg15?.Object)).ConfigureAwait(false);
arg15?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg13?.Object,
arg14?.Object,
arg15?.Object,
arg16?.Object)).ConfigureAwait(false);
arg16?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<FakeObjec
Mock<FakeObject> arg,
string expectedParameterNameForException)
{
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(arg?.Object)).ConfigureAwait(false);
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(arg?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
{
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(
arg1?.Object,
arg2?.Object)).ConfigureAwait(false);
arg2?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() => ArgumentHelpers.ThrowIfNullAsync(
arg1?.Object,
arg2?.Object,
arg3?.Object)).ConfigureAwait(false);
arg3?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg1?.Object,
arg2?.Object,
arg3?.Object,
arg4?.Object)).ConfigureAwait(false);
arg4?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg2?.Object,
arg3?.Object,
arg4?.Object,
arg5?.Object)).ConfigureAwait(false);
arg5?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg3?.Object,
arg4?.Object,
arg5?.Object,
arg6?.Object)).ConfigureAwait(false);
arg6?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg4?.Object,
arg5?.Object,
arg6?.Object,
arg7?.Object)).ConfigureAwait(false);
arg7?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg5?.Object,
arg6?.Object,
arg7?.Object,
arg8?.Object)).ConfigureAwait(false);
arg8?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public sealed class Throws : ITestAsyncMethodWithMoqNullableParameters<
arg6?.Object,
arg7?.Object,
arg8?.Object,
arg9?.Object)).ConfigureAwait(false);
arg9?.Object));
Assert.Equal(expectedParameterNameForException, exception.ParamName);
}
}
Expand Down

0 comments on commit f0801b2

Please sign in to comment.