File tree Expand file tree Collapse file tree
src/Mobile/eShopOnContainers/eShopOnContainers.UnitTests/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public async Task GetFakeBasketTest()
1111 {
1212 var catalogMockService = new CatalogMockService ( ) ;
1313 var result = await catalogMockService . GetCatalogAsync ( ) ;
14- Assert . NotEqual ( 0 , result . Count ) ;
14+ Assert . NotEmpty ( result ) ;
1515 }
1616 }
1717}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public async Task GetFakeCatalogTest()
1212 var catalogMockService = new CatalogMockService ( ) ;
1313 var catalog = await catalogMockService . GetCatalogAsync ( ) ;
1414
15- Assert . NotEqual ( 0 , catalog . Count ) ;
15+ Assert . NotEmpty ( catalog ) ;
1616 }
1717
1818 [ Fact ]
@@ -21,7 +21,7 @@ public async Task GetFakeCatalogBrandTest()
2121 var catalogMockService = new CatalogMockService ( ) ;
2222 var catalogBrand = await catalogMockService . GetCatalogBrandAsync ( ) ;
2323
24- Assert . NotEqual ( 0 , catalogBrand . Count ) ;
24+ Assert . NotEmpty ( catalogBrand ) ;
2525 }
2626
2727 [ Fact ]
@@ -30,7 +30,7 @@ public async Task GetFakeCatalogTypeTest()
3030 var catalogMockService = new CatalogMockService ( ) ;
3131 var catalogType = await catalogMockService . GetCatalogTypeAsync ( ) ;
3232
33- Assert . NotEqual ( 0 , catalogType . Count ) ;
33+ Assert . NotEmpty ( catalogType ) ;
3434 }
3535 }
3636}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public async Task GetFakeCampaignsTest()
2323 var campaignMockService = new CampaignMockService ( ) ;
2424 var result = await campaignMockService . GetAllCampaignsAsync ( GlobalSetting . Instance . AuthToken ) ;
2525
26- Assert . NotEqual ( 0 , result . Count ) ;
26+ Assert . NotEmpty ( result ) ;
2727 }
2828 }
2929}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public async Task GetFakeOrdersTest()
2222 var ordersMockService = new OrderMockService ( ) ;
2323 var result = await ordersMockService . GetOrdersAsync ( GlobalSetting . Instance . AuthToken ) ;
2424
25- Assert . NotEqual ( 0 , result . Count ) ;
25+ Assert . NotEmpty ( result ) ;
2626 }
2727 }
2828}
You can’t perform that action at this time.
0 commit comments