Fix xUnit warnings.

This commit is contained in:
Bradley Grainger 2017-11-03 12:14:59 -07:00
parent 7afe822e16
commit f42c32c63b
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
}); });
Assert.NotNull(basket); Assert.NotNull(basket);
Assert.Equal(1, basket.Items.Count); Assert.Single(basket.Items);
} }
[Fact] [Fact]

View File

@ -41,7 +41,7 @@ namespace IntegrationTests.Services.Catalog
var response = await server.CreateClient() var response = await server.CreateClient()
.GetAsync(Get.ItemById(int.MinValue)); .GetAsync(Get.ItemById(int.MinValue));
Assert.Equal(response.StatusCode, HttpStatusCode.BadRequest); Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
} }
} }
@ -53,7 +53,7 @@ namespace IntegrationTests.Services.Catalog
var response = await server.CreateClient() var response = await server.CreateClient()
.GetAsync(Get.ItemById(int.MaxValue)); .GetAsync(Get.ItemById(int.MaxValue));
Assert.Equal(response.StatusCode, HttpStatusCode.NotFound); Assert.Equal( HttpStatusCode.NotFound, response.StatusCode);
} }
} }