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

Commit

Permalink
Removed invalid test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodejunkie committed Jul 10, 2017
1 parent 292185a commit d677ddd
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/Nancy.Tests.Functional/Tests/PartialViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
{
using System;
using Nancy.Bootstrapper;
using Nancy.ErrorHandling;
using Nancy.Extensions;
using Nancy.Testing;
using Nancy.Tests.Functional.Modules;
using Nancy.ViewEngines;
using Xunit;

public class PartialViewTests
{
private readonly INancyBootstrapper bootstrapper;

private readonly Browser browser;
private INancyBootstrapper bootstrapper;
private Browser browser;

public PartialViewTests()
{
Expand Down Expand Up @@ -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<ViewNotFoundException>(() =>
{
var response = this.browser.Get(@"/razor-partialnotfound");

response.Body.AsString();
});
}
}
}

0 comments on commit d677ddd

Please sign in to comment.