mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-12-28 05:05:49 +08:00
Started adding BDDfy...
This commit is contained in:
@@ -9,6 +9,7 @@ using Shouldly;
|
||||
namespace Ocelot.AcceptanceTests
|
||||
{
|
||||
using System.Net;
|
||||
using TestStack.BDDfy;
|
||||
|
||||
public class RouterTests : IDisposable
|
||||
{
|
||||
@@ -30,8 +31,9 @@ namespace Ocelot.AcceptanceTests
|
||||
[Fact]
|
||||
public void should_return_response_404()
|
||||
{
|
||||
WhenIRequestTheUrl("/");
|
||||
ThenTheStatusCodeShouldBe(HttpStatusCode.NotFound);
|
||||
this.When(x => x.WhenIRequestTheUrl("/"))
|
||||
.Then(x => x.ThenTheStatusCodeShouldBe(HttpStatusCode.NotFound))
|
||||
.BDDfy();
|
||||
}
|
||||
|
||||
private void WhenIRequestTheUrl(string url)
|
||||
|
||||
Reference in New Issue
Block a user