Edit the test assert
This commit is contained in:
parent
6a0001b9c6
commit
ddcb665bcd
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Net;
|
||||||
|
|
||||||
namespace IntegrationTests.Services.Catalog
|
namespace IntegrationTests.Services.Catalog
|
||||||
{
|
{
|
||||||
@ -40,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));
|
||||||
|
|
||||||
response.EnsureSuccessStatusCode();
|
Assert.Equal(response.StatusCode, HttpStatusCode.BadRequest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,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));
|
||||||
|
|
||||||
response.EnsureSuccessStatusCode();
|
Assert.Equal(response.StatusCode, HttpStatusCode.NotFound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user