File tree Expand file tree Collapse file tree
src/SimpleToDoServiceTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk.Web " >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp2.0 </TargetFramework >
4+ <TargetFramework >netcoreapp2.1 </TargetFramework >
55 </PropertyGroup >
66
77 <ItemGroup >
8- <PackageReference Include =" xunit" Version =" 2.2.0" />
9- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.2.0" />
10- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.3.0" />
8+ <PackageReference Include =" xunit" Version =" 2.3.1" />
9+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.1" />
10+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.7.2" />
11+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.ViewFeatures" Version =" 2.1.1" />
12+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.1.1" />
1113 </ItemGroup >
1214
1315 <ItemGroup >
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public async System.Threading.Tasks.Task TestBatchUpdate_CreateWithSpecifiedProt
173173 Assert . True ( context . TaskPrototypes . Count ( ) == 5 ) ;
174174 Assert . True ( context . Tasks . Count ( ) == 5 ) ;
175175 Assert . Equal ( "CRON" , context . TaskPrototypes . Where ( o => o . Uuid == taskToCreate . Prototype . Uuid ) . First ( ) . CronExpression ) ;
176- Assert . Equal ( 1 , context . TaskPrototypes . Where ( o => o . Uuid == taskToCreate . Prototype . Uuid ) . First ( ) . Tasks . Count ( ) ) ;
176+ Assert . Single ( context . TaskPrototypes . Where ( o => o . Uuid == taskToCreate . Prototype . Uuid ) . First ( ) . Tasks ) ;
177177 }
178178
179179 [ Fact ]
You can’t perform that action at this time.
0 commit comments