File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
4242 </PackageReference >
4343 <PackageReference Include =" NuGetizer" Version =" 1.0.5" />
44- <PackageReference Include =" TypeNameFormatter.Sources" Version =" 1.0.0 " PrivateAssets =" All" />
44+ <PackageReference Include =" TypeNameFormatter.Sources" Version =" 1.1.1 " PrivateAssets =" All" />
4545 </ItemGroup >
4646
4747 <ItemGroup Condition =" '$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'netstandard2.0' " >
Original file line number Diff line number Diff line change @@ -248,12 +248,9 @@ public Mock<T> Create<T>(params object[] args)
248248 {
249249 // "fix" compiler picking this overload instead of
250250 // the one receiving the mock behavior.
251- if ( args != null && args . Length > 0 && args [ 0 ] is MockBehavior )
252- {
253- return CreateMock < T > ( ( MockBehavior ) args [ 0 ] , args . Skip ( 1 ) . ToArray ( ) ) ;
254- }
255-
256- return CreateMock < T > ( defaultBehavior , args ) ;
251+ return args != null && args . Length > 0 && args [ 0 ] is MockBehavior behavior
252+ ? CreateMock < T > ( behavior , args . Skip ( 1 ) . ToArray ( ) )
253+ : CreateMock < T > ( defaultBehavior , args ) ;
257254 }
258255
259256 /// <summary>
You can’t perform that action at this time.
0 commit comments