diff --git a/src/Nancy.Tests.Functional/Tests/PartialViewTests.cs b/src/Nancy.Tests.Functional/Tests/PartialViewTests.cs index 0c8f421de6..fbde9b654c 100644 --- a/src/Nancy.Tests.Functional/Tests/PartialViewTests.cs +++ b/src/Nancy.Tests.Functional/Tests/PartialViewTests.cs @@ -2,6 +2,8 @@ { using System; using Nancy.Bootstrapper; + using Nancy.ErrorHandling; + using Nancy.Extensions; using Nancy.Testing; using Nancy.Tests.Functional.Modules; using Nancy.ViewEngines; @@ -9,9 +11,8 @@ public class PartialViewTests { - private readonly INancyBootstrapper bootstrapper; - - private readonly Browser browser; + private INancyBootstrapper bootstrapper; + private Browser browser; public PartialViewTests() { @@ -42,16 +43,5 @@ public void When_Using_Partial_View_Then_First_Index_Of_ViewStart_Should_Equal_L // If the index is not the same then the string occurs twice... Assert.Equal(firstIndex, lastIndex); } - - [Fact] - public void When_Partial_View_Could_Not_Be_Found_An_Meaningful_Exception_Should_Be_Thrown() - { - Assert.Throws(() => - { - var response = this.browser.Get(@"/razor-partialnotfound"); - - response.Body.AsString(); - }); - } } }