1+ using System . Diagnostics . CodeAnalysis ;
2+
13namespace TheSoftwareGorilla . TDD . Money . Tests ;
24
35#region TO DO's
@@ -12,6 +14,7 @@ public class CurrencyPairTest
1214 [ TestCase ( "ZAR" , "USD" , TestName = "CurrencyPair ZAR to USD are equal" ) ]
1315 [ TestCase ( "CHF" , "USD" , false , TestName = "CurrencyPair CHF to USD != USD to CHF" ) ]
1416 [ TestCase ( "ZAR" , "USD" , false , TestName = "CurrencyPair ZAR to USD != USD to ZAR" ) ]
17+ [ SuppressMessage ( "csharpsquid" , "S2234" , Justification = "Intentional parameter order inversion for inequality assertions." ) ]
1518 public void TestCurrencyPairs ( string from , string to , bool isEqual = true )
1619 {
1720 var pair = new CurrencyPair ( from , to ) ;
@@ -34,8 +37,8 @@ public void TestCurrencyPairs(string from, string to, bool isEqual = true)
3437 public void TestEdgeCases ( string from , string to )
3538 {
3639 var pair = new CurrencyPair ( from , to ) ;
37- Assert . That ( pair , Is . Not . EqualTo ( null ) ) ;
40+ Assert . That ( pair , Is . Not . Null ) ;
3841 Assert . That ( pair , Is . Not . EqualTo ( new object ( ) ) ) ;
39- Assert . That ( pair , Is . EqualTo ( pair ) ) ;
42+ Assert . That ( pair , Is . EqualTo ( new CurrencyPair ( from , to ) ) ) ;
4043 }
4144}
0 commit comments