File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ public void PolyAssert()
484
484
poly . IsTrue ( ( ) => x == 5 ) ;
485
485
poly . IsTrue ( ( ) => x == 6 ) ;
486
486
poly . IsTrue ( ( ) => x == 7 ) ;
487
- poly . Try ( ( ) => Assert . Fail ( "Wah wah" ) ) ;
487
+ poly . Try ( ( ) => throw new Exception ( "Wah wah" ) ) ;
488
488
poly . Log ( "PolyAssert.Log messages are only printed if the test fails" ) ;
489
489
}
490
490
}
@@ -506,7 +506,7 @@ public void PolyAssertCanFinishEarly()
506
506
poly . Log ( "Sometimes you do want to end the test early after all" ) ;
507
507
poly . StopIfErrorsHaveOccurred ( ) ; //no stop here
508
508
poly . Log ( "So just call StopIfErrorsHaveOccurred (behaves the same as disposing the PolyAssert)" ) ;
509
- poly . Try ( ( ) => Assert . Fail ( "Wah wah" ) ) ;
509
+ poly . Try ( ( ) => throw new Exception ( "Wah wah" ) ) ;
510
510
poly . StopIfErrorsHaveOccurred ( ) ; //no stop here
511
511
poly . Log ( "This message should not be printed, as StopIfErrorsHaveOccurred will throw an exception this time" ) ;
512
512
}
Original file line number Diff line number Diff line change 9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
- <Reference Include =" nunit.framework" >
13
- <HintPath >..\lib\nunit.framework.dll</HintPath >
14
- </Reference >
15
12
<Reference Include =" System" />
16
13
<Reference Include =" System.Core" >
17
14
<RequiredTargetFramework >3.5</RequiredTargetFramework >
32
29
<PackageReference Include =" ApprovalTests" Version =" 3.0.7" />
33
30
<PackageReference Include =" ApprovalUtilities" Version =" 3.0.7" />
34
31
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.9.1" />
32
+ <PackageReference Include =" nunit" Version =" 3.13.1" />
35
33
<PackageReference Include =" NUnit3TestAdapter" Version =" 3.17.0" />
36
34
</ItemGroup >
37
35
</Project >
You can’t perform that action at this time.
0 commit comments