Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Commit d677ddd

Browse files
committed
Removed invalid test
1 parent 292185a commit d677ddd

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/Nancy.Tests.Functional/Tests/PartialViewTests.cs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
{
33
using System;
44
using Nancy.Bootstrapper;
5+
using Nancy.ErrorHandling;
6+
using Nancy.Extensions;
57
using Nancy.Testing;
68
using Nancy.Tests.Functional.Modules;
79
using Nancy.ViewEngines;
810
using Xunit;
911

1012
public class PartialViewTests
1113
{
12-
private readonly INancyBootstrapper bootstrapper;
13-
14-
private readonly Browser browser;
14+
private INancyBootstrapper bootstrapper;
15+
private Browser browser;
1516

1617
public PartialViewTests()
1718
{
@@ -42,16 +43,5 @@ public void When_Using_Partial_View_Then_First_Index_Of_ViewStart_Should_Equal_L
4243
// If the index is not the same then the string occurs twice...
4344
Assert.Equal(firstIndex, lastIndex);
4445
}
45-
46-
[Fact]
47-
public void When_Partial_View_Could_Not_Be_Found_An_Meaningful_Exception_Should_Be_Thrown()
48-
{
49-
Assert.Throws<ViewNotFoundException>(() =>
50-
{
51-
var response = this.browser.Get(@"/razor-partialnotfound");
52-
53-
response.Body.AsString();
54-
});
55-
}
5646
}
5747
}

0 commit comments

Comments
 (0)