Started adding BDDfy...

This commit is contained in:
Tom Pallister
2016-08-24 17:51:55 +01:00
parent b2c1e627bb
commit 6d46829ce2
4 changed files with 29 additions and 19 deletions

View File

@ -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)

View File

@ -1,4 +1,4 @@
{
{
"version": "1.0.0-*",
"testRunner": "xunit",
@ -24,7 +24,8 @@
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Shouldly": "2.8.0",
"Ocelot": "1.0.0-*",
"Microsoft.AspNetCore.TestHost": "1.0.0"
"Microsoft.AspNetCore.TestHost": "1.0.0",
"TestStack.BDDfy": "4.3.1"
},
"frameworks": {