File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
src/FluentAssertions.Mvc3
tests/FluentAssertions.Mvc3.Tests Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 99namespace FluentAssertions . Mvc3
1010{
1111 [ DebuggerNonUserCode ]
12- public class PartialViewResultAssertions : ViewResultBaseAssertions < ViewResult >
12+ public class PartialViewResultAssertions : ViewResultBaseAssertions < PartialViewResult >
1313 {
1414 public PartialViewResultAssertions ( PartialViewResult viewResult ) : base ( viewResult ) { }
1515 }
Original file line number Diff line number Diff line change 5151 <Compile Include =" ContentResultAssertions_Tests.cs" />
5252 <Compile Include =" FailureMessageHelper_Tests.cs" />
5353 <Compile Include =" Helpers\FailureMessageHelper.cs" />
54+ <Compile Include =" PartialViewResultAssertions_Tests.cs" />
5455 <Compile Include =" Properties\AssemblyInfo.cs" />
5556 <Compile Include =" Fakes\FakeController.cs" />
5657 <Compile Include =" ActionResultAssertions_Tests.cs" />
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq ;
4+ using System . Text ;
5+ using System . Web . Mvc ;
6+ using NUnit . Framework ;
7+
8+ namespace FluentAssertions . Mvc3 . Tests
9+ {
10+ [ TestFixture ]
11+ public class PartialViewResultAssertions_Tests
12+ {
13+ [ Test ]
14+ public void WithDefaultViewName_GivenExpectedValue_ShouldPass ( )
15+ {
16+ ActionResult result = new PartialViewResult
17+ {
18+ ViewName = String . Empty
19+ } ;
20+
21+ result . Should ( ) . BePartialView ( ) . WithDefaultViewName ( ) ;
22+ }
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments