File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
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 3
3
<PropertyGroup >
4
4
<TargetFrameworks >net45</TargetFrameworks >
5
5
</PropertyGroup >
6
+ <PropertyGroup Condition =" '$(Configuration)'=='Debug'" >
7
+ <DebugType >full</DebugType >
8
+ <DebugSymbols >true</DebugSymbols >
9
+ </PropertyGroup >
6
10
7
11
<ItemGroup >
8
12
<Reference Include =" System" />
22
26
</ProjectReference >
23
27
</ItemGroup >
24
28
<ItemGroup >
25
- <PackageReference Include =" ApprovalTests" Version =" 3.0.7" />
26
- <PackageReference Include =" ApprovalUtilities" Version =" 3.0.7" />
27
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.9.1" />
28
- <PackageReference Include =" nunit" Version =" 3.13.1" />
29
- <PackageReference Include =" NUnit3TestAdapter" Version =" 3.17.0" />
29
+ <PackageReference Include =" ApprovalTests" Version =" 3.0.7" />
30
+ <PackageReference Include =" ApprovalUtilities" Version =" 3.0.7" />
31
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.9.1" />
32
+ <PackageReference Include =" nunit" Version =" 3.13.1" />
33
+ <PackageReference Include =" NUnit3TestAdapter" Version =" 3.17.0" />
30
34
</ItemGroup >
31
35
</Project >
You can’t perform that action at this time.
0 commit comments