@@ -7,8 +7,10 @@ namespace PostalCodes.UnitTests.Generated
77 internal class NLPostalCodeTests
88 {
99
10- [ TestCase ( "9999ZZ" , "9998" ) ]
11- [ TestCase ( "1000AA" , "0999" ) ]
10+ [ TestCase ( "9999" , "9998" ) ]
11+ [ TestCase ( "1000" , "0999" ) ]
12+ [ TestCase ( "9999ZZ" , "9999ZY" ) ]
13+ [ TestCase ( "1000AA" , "0999ZZ" ) ]
1214 public void Predecessor_ValidInput_ReturnsCorrectPostalCode ( string postalCode , string postalCodePredecessor )
1315 {
1416 var code = new NLPostalCode ( postalCode ) ;
@@ -18,8 +20,10 @@ public void Predecessor_ValidInput_ReturnsCorrectPostalCode(string postalCode, s
1820 Assert . AreEqual ( codePredecessor . ToHumanReadableString ( ) , code . Predecessor . ToHumanReadableString ( ) ) ;
1921 }
2022
21- [ TestCase ( "0999ZZ" , "1000" ) ]
22- [ TestCase ( "3456JT" , "3457" ) ]
23+ [ TestCase ( "0999" , "1000" ) ]
24+ [ TestCase ( "3456" , "3457" ) ]
25+ [ TestCase ( "0999ZZ" , "1000AA" ) ]
26+ [ TestCase ( "3456JT" , "3456JU" ) ]
2327 public void Successor_ValidInput_ReturnsCorrectPostalCode ( string postalCode , string postalCodeSuccessor )
2428 {
2529 var code = new NLPostalCode ( postalCode ) ;
@@ -48,6 +52,11 @@ public void InvalidCode_ThrowsArgumentException(string postalCode)
4852 Assert . Throws < ArgumentException > ( ( ) => new NLPostalCode ( postalCode ) ) ;
4953 }
5054
55+ [ TestCase ( "1234" , "1236" ) ]
56+ [ TestCase ( "1234AA" , "1236AA" ) ]
57+ [ TestCase ( "1235" , "1237AA" ) ]
58+ [ TestCase ( "1235ZY" , "1235ZZ" ) ]
59+ [ TestCase ( "1234ZZ" , "1235" ) ]
5160 public void CompareTo_ReturnsExpectedSign ( string postalCodeBefore , string postalCodeAfter )
5261 {
5362 var b = new NLPostalCode ( postalCodeBefore ) ;
0 commit comments