1- /** using System;
1+ using System ;
22using System . Collections . Generic ;
33using System . Linq ;
44using System . Text ;
55using System . Threading . Tasks ;
66using GitHub . Extensions ;
7- using Xunit ;
7+ using NUnit . Framework ;
88
99namespace UnitTests . GitHub . Extensions
1010{
1111 public class GuardTests
1212 {
1313 public class TheArgumentNotNullMethod : TestBaseClass
1414 {
15- [Fact ]
15+ [ Test ]
1616 public void ShouldNotThrow ( )
1717 {
1818 Guard . ArgumentNotNull ( new object ( ) , "name" ) ;
1919 }
2020
21- [Fact ]
21+ [ Test ]
2222 public void ShouldThrow ( )
2323 {
2424 Assert . Throws < ArgumentNullException > ( ( ) => Guard . ArgumentNotNull ( null , "name" ) ) ;
@@ -27,19 +27,19 @@ public void ShouldThrow()
2727
2828 public class TheArgumentNonNegativeMethod : TestBaseClass
2929 {
30- [Fact ]
30+ [ Test ]
3131 public void ShouldNotThrowFor0 ( )
3232 {
3333 Guard . ArgumentNonNegative ( 0 , "name" ) ;
3434 }
3535
36- [Fact ]
36+ [ Test ]
3737 public void ShouldNotThrowFor1 ( )
3838 {
3939 Guard . ArgumentNonNegative ( 1 , "name" ) ;
4040 }
4141
42- [Fact ]
42+ [ Test ]
4343 public void ShouldThrowForMinus1 ( )
4444 {
4545 Assert . Throws < ArgumentException > ( ( ) => Guard . ArgumentNonNegative ( - 1 , "name" ) ) ;
@@ -48,19 +48,19 @@ public void ShouldThrowForMinus1()
4848
4949 public class TheArgumentNotEmptyStringMethod : TestBaseClass
5050 {
51- [Fact ]
51+ [ Test ]
5252 public void ShouldNotThrowForString ( )
5353 {
5454 Guard . ArgumentNotEmptyString ( "string" , "name" ) ;
5555 }
5656
57- [Fact ]
57+ [ Test ]
5858 public void ShouldThrowForEmptyString ( )
5959 {
6060 Assert . Throws < ArgumentException > ( ( ) => Guard . ArgumentNotEmptyString ( "" , "name" ) ) ;
6161 }
6262
63- [Fact ]
63+ [ Test ]
6464 public void ShouldThrowForNull ( )
6565 {
6666 Assert . Throws < ArgumentException > ( ( ) => Guard . ArgumentNotEmptyString ( null , "name" ) ) ;
@@ -69,54 +69,53 @@ public void ShouldThrowForNull()
6969
7070 public class TheArgumentInRangeMethod : TestBaseClass
7171 {
72- [Fact ]
72+ [ Test ]
7373 public void ShouldNotThrowForGreaterThanMinimum ( )
7474 {
7575 Guard . ArgumentInRange ( 12 , 10 , "name" ) ;
7676 }
7777
78- [Fact ]
78+ [ Test ]
7979 public void ShouldNotThrowForEqualToMinimumNoMaximum ( )
8080 {
8181 Guard . ArgumentInRange ( 10 , 10 , "name" ) ;
8282 }
8383
84- [Fact ]
84+ [ Test ]
8585 public void ShouldNotThrowForEqualToMinimumWithMaximum ( )
8686 {
8787 Guard . ArgumentInRange ( 10 , 10 , 20 , "name" ) ;
8888 }
8989
90- [Fact ]
90+ [ Test ]
9191 public void ShouldNotThrowForEqualToMaximum ( )
9292 {
9393 Guard . ArgumentInRange ( 20 , 10 , 20 , "name" ) ;
9494 }
9595
96- [Fact ]
96+ [ Test ]
9797 public void ShouldNotThrowForBetweenMinimumAndMaximum ( )
9898 {
9999 Guard . ArgumentInRange ( 12 , 10 , 20 , "name" ) ;
100100 }
101101
102- [Fact ]
102+ [ Test ]
103103 public void ShouldThrowForLessThanMinimumNoMaximum ( )
104104 {
105105 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Guard . ArgumentInRange ( 2 , 10 , "name" ) ) ;
106106 }
107107
108- [Fact ]
108+ [ Test ]
109109 public void ShouldThrowForLessThanMinimumWithMaximum ( )
110110 {
111111 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Guard . ArgumentInRange ( 2 , 10 , 20 , "name" ) ) ;
112112 }
113113
114- [Fact ]
114+ [ Test ]
115115 public void ShouldThrowForGreaterThanMaximum ( )
116116 {
117117 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Guard . ArgumentInRange ( 22 , 10 , 20 , "name" ) ) ;
118118 }
119119 }
120120 }
121- }
122- */
121+ }
0 commit comments