Exemplo n.º 1
0
 public void ExistingPartial_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/Default/Partial");
         response.Should().Match("~/Views/Shared/Partial.cshtml");
     })
     .Should().NotThrow();
 }
 public void ExistingPartialExistingDisplayMode_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/Default/Partial", "Mobile");
         response.Should().MatchEquivalentOf("*~/Views/Shared/Partial.Mobile.cshtml*");
     })
     .Should().NotThrow();
 }
Exemplo n.º 3
0
 public void ExistingViewByAction_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/Default/Index");
         response.Should().MatchEquivalentOf("*~/Views/Default/Index.cshtml*");
     })
     .Should().NotThrow();
 }
Exemplo n.º 4
0
 public void ExistingPartialExistingDisplayMode_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/ControllerFeature/Partial", "Mobile");
         response.Should().MatchEquivalentOf("*~/Features/ControllerFeature/Partial.Mobile.cshtml*");
     })
     .Should().NotThrow();
 }
Exemplo n.º 5
0
 public void ExistingViewWithLayoutBySpecificName_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/Default/IndexWithLayoutBySpecificName");
         response.Should().MatchEquivalentOf("*~/Views/Shared/_Layout.cshtml*/Views/Default/Index.cshtml*");
     })
     .Should().NotThrow();
 }
Exemplo n.º 6
0
 public void ExistingViewWithLayoutBySpecificName_Success()
 {
     _sut.Awaiting(async sut =>
     {
         var response = await sut.Get("/ControllerFeature/IndexWithLayoutBySpecificName");
         response.Should()
         .MatchEquivalentOf(
             "*~/Features/ControllerFeature/_Layout.cshtml*/Features/ControllerFeature/Index.cshtml");
     })
     .Should().NotThrow();
 }