Refactored unit tests to remove compiler warnings.

This commit is contained in:
David Britch 2018-01-12 16:04:10 +00:00
parent c666c36cec
commit 6b1cffad9d
4 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ namespace eShopOnContainers.UnitTests
{
var catalogMockService = new CatalogMockService();
var result = await catalogMockService.GetCatalogAsync();
Assert.NotEqual(0, result.Count);
Assert.NotEmpty(result);
}
}
}

View File

@ -12,7 +12,7 @@ namespace eShopOnContainers.UnitTests
var catalogMockService = new CatalogMockService();
var catalog = await catalogMockService.GetCatalogAsync();
Assert.NotEqual(0, catalog.Count);
Assert.NotEmpty(catalog);
}
[Fact]
@ -21,7 +21,7 @@ namespace eShopOnContainers.UnitTests
var catalogMockService = new CatalogMockService();
var catalogBrand = await catalogMockService.GetCatalogBrandAsync();
Assert.NotEqual(0, catalogBrand.Count);
Assert.NotEmpty(catalogBrand);
}
[Fact]
@ -30,7 +30,7 @@ namespace eShopOnContainers.UnitTests
var catalogMockService = new CatalogMockService();
var catalogType = await catalogMockService.GetCatalogTypeAsync();
Assert.NotEqual(0, catalogType.Count);
Assert.NotEmpty(catalogType);
}
}
}

View File

@ -23,7 +23,7 @@
var campaignMockService = new CampaignMockService();
var result = await campaignMockService.GetAllCampaignsAsync(GlobalSetting.Instance.AuthToken);
Assert.NotEqual(0, result.Count);
Assert.NotEmpty(result);
}
}
}

View File

@ -22,7 +22,7 @@ namespace eShopOnContainers.UnitTests
var ordersMockService = new OrderMockService();
var result = await ordersMockService.GetOrdersAsync(GlobalSetting.Instance.AuthToken);
Assert.NotEqual(0, result.Count);
Assert.NotEmpty(result);
}
}
}