@@ -62,15 +62,15 @@ public void GetPortionTest()
6262 Assert . Equal ( "poke" + NL + "Until something bad broke," + NL + "And then" + NL , text . GetPortion ( 2 , 19 , 4 , 8 ) ) ;
6363
6464 // An invalid but recoverable range (to test that a best effort is made rather than crashing).
65- Assert . Equal ( NL + "Who couldn't leave software to fester -" + NL , text . GetPortion ( 0 , Int32 . MaxValue , 1 , Int32 . MaxValue ) ) ;
65+ Assert . Equal ( NL + "Who couldn't leave software to fester -" + NL , text . GetPortion ( 0 , int . MaxValue , 1 , int . MaxValue ) ) ;
6666
6767 // Some quite definitely dodgy ranges (to test that exceptions are thrown).
6868 Assert . Throws < Exception > ( ( ) => text . GetPortion ( - 1 , 0 , 0 , 0 ) ) ;
6969 Assert . Throws < Exception > ( ( ) => text . GetPortion ( 0 , - 1 , 0 , 0 ) ) ;
7070 Assert . Throws < Exception > ( ( ) => text . GetPortion ( 0 , 0 , - 1 , 0 ) ) ;
7171 Assert . Throws < Exception > ( ( ) => text . GetPortion ( 0 , 0 , 0 , - 1 ) ) ;
7272 Assert . Throws < Exception > ( ( ) => text . GetPortion ( 3 , 5 , 2 , 5 ) ) ;
73- Assert . Throws < Exception > ( ( ) => text . GetPortion ( 2 , 5 , Int32 . MaxValue , 5 ) ) ;
73+ Assert . Throws < Exception > ( ( ) => text . GetPortion ( 2 , 5 , int . MaxValue , 5 ) ) ;
7474 }
7575
7676 #endregion
0 commit comments