@@ -491,49 +491,49 @@ public void UInt64_Boundary_Test_16()
491491 [ TestMethod ]
492492 public void SByte_ArgumentNullException_Test_17 ( )
493493 {
494- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { SByte . Parse ( str ) ; } ) ;
494+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { SByte . Parse ( str ) ; } ) ;
495495 }
496496
497497 [ TestMethod ]
498498 public void Byte_ArgumentNullException_Test_18 ( )
499499 {
500- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Byte . Parse ( str ) ; } ) ;
500+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Byte . Parse ( str ) ; } ) ;
501501 }
502502
503503 [ TestMethod ]
504504 public void Int16_ArgumentNullException_Test_19 ( )
505505 {
506- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int16 . Parse ( str ) ; } ) ;
506+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int16 . Parse ( str ) ; } ) ;
507507 }
508508
509509 [ TestMethod ]
510510 public void UInt16_ArgumentNullException_Test_20 ( )
511511 {
512- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt16 . Parse ( str ) ; } ) ;
512+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt16 . Parse ( str ) ; } ) ;
513513 }
514514
515515 [ TestMethod ]
516516 public void Int32_ArgumentNullException_Test_21 ( )
517517 {
518- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int32 . Parse ( str ) ; } ) ;
518+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int32 . Parse ( str ) ; } ) ;
519519 }
520520
521521 [ TestMethod ]
522522 public void UInt32_ArgumentNullException_Test_22 ( )
523523 {
524- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt32 . Parse ( str ) ; } ) ;
524+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt32 . Parse ( str ) ; } ) ;
525525 }
526526
527527 [ TestMethod ]
528528 public void Int64_ArgumentNullException_Test_23 ( )
529529 {
530- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int64 . Parse ( str ) ; } ) ;
530+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int64 . Parse ( str ) ; } ) ;
531531 }
532532
533533 [ TestMethod ]
534534 public void UInt64_ArgumentNullException_Test_24 ( )
535535 {
536- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt64 . Parse ( str ) ; } ) ;
536+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt64 . Parse ( str ) ; } ) ;
537537 }
538538
539539 /// <summary>
@@ -581,12 +581,12 @@ public void ParseSByte_FormatException_Test_25()
581581 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
582582 for ( int i = 0 ; i < strArr . Length ; i ++ )
583583 {
584- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
584+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
585585 }
586586 for ( int i = 0 ; i < 5 ; i ++ )
587587 {
588588 String rdmString = GetRandomString ( ) ;
589- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( rdmString ) ; } ) ;
589+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( rdmString ) ; } ) ;
590590 }
591591 }
592592
@@ -596,12 +596,12 @@ public void ParseByte_FormatException_Test_26()
596596 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
597597 for ( int i = 0 ; i < strArr . Length ; i ++ )
598598 {
599- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
599+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
600600 }
601601 for ( int i = 0 ; i < 5 ; i ++ )
602602 {
603603 String rdmString = GetRandomString ( ) ;
604- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( rdmString ) ; } ) ;
604+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( rdmString ) ; } ) ;
605605 }
606606 }
607607
@@ -611,12 +611,12 @@ public void ParseInt16_FormatException_Test_27()
611611 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
612612 for ( int i = 0 ; i < strArr . Length ; i ++ )
613613 {
614- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
614+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
615615 }
616616 for ( int i = 0 ; i < 5 ; i ++ )
617617 {
618618 String rdmString = GetRandomString ( ) ;
619- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( rdmString ) ; } ) ;
619+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( rdmString ) ; } ) ;
620620 }
621621 }
622622
@@ -626,12 +626,12 @@ public void ParseUInt16_FormatException_Test_28()
626626 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
627627 for ( int i = 0 ; i < strArr . Length ; i ++ )
628628 {
629- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
629+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
630630 }
631631 for ( int i = 0 ; i < 5 ; i ++ )
632632 {
633633 String rdmString = GetRandomString ( ) ;
634- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( rdmString ) ; } ) ;
634+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( rdmString ) ; } ) ;
635635 }
636636 }
637637
@@ -641,12 +641,12 @@ public void ParseInt32_FormatException_Test_29()
641641 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
642642 for ( int i = 0 ; i < strArr . Length ; i ++ )
643643 {
644- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
644+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
645645 }
646646 for ( int i = 0 ; i < 5 ; i ++ )
647647 {
648648 String rdmString = GetRandomString ( ) ;
649- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( rdmString ) ; } ) ;
649+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( rdmString ) ; } ) ;
650650 }
651651 }
652652
@@ -656,12 +656,12 @@ public void ParseUInt32_FormatException_Test_30()
656656 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
657657 for ( int i = 0 ; i < strArr . Length ; i ++ )
658658 {
659- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
659+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
660660 }
661661 for ( int i = 0 ; i < 5 ; i ++ )
662662 {
663663 String rdmString = GetRandomString ( ) ;
664- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( rdmString ) ; } ) ;
664+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( rdmString ) ; } ) ;
665665 }
666666 }
667667
@@ -671,12 +671,12 @@ public void ParseInt64_FormatException_Test_31()
671671 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
672672 for ( int i = 0 ; i < strArr . Length ; i ++ )
673673 {
674- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
674+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
675675 }
676676 for ( int i = 0 ; i < 5 ; i ++ )
677677 {
678678 String rdmString = GetRandomString ( ) ;
679- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( rdmString ) ; } ) ;
679+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( rdmString ) ; } ) ;
680680 }
681681 }
682682
@@ -686,12 +686,12 @@ public void ParseUInt64_FormatException_Test_32()
686686 String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
687687 for ( int i = 0 ; i < strArr . Length ; i ++ )
688688 {
689- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
689+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
690690 }
691691 for ( int i = 0 ; i < 5 ; i ++ )
692692 {
693693 String rdmString = GetRandomString ( ) ;
694- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( rdmString ) ; } ) ;
694+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( rdmString ) ; } ) ;
695695 }
696696 }
697697
@@ -707,7 +707,7 @@ public void ParseSByte_OverflowException_Test_33()
707707 ( ( Int64 ) SByte . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) SByte . MaxValue + 100 ) . ToString ( ) } ;
708708 for ( int i = 0 ; i < strArr . Length ; i ++ )
709709 {
710- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
710+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
711711 }
712712 }
713713
@@ -718,7 +718,7 @@ public void ParseByte_OverflowException_Test_34()
718718 ( ( Int64 ) Byte . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Byte . MaxValue + 100 ) . ToString ( ) } ;
719719 for ( int i = 0 ; i < strArr . Length ; i ++ )
720720 {
721- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
721+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
722722 }
723723 }
724724
@@ -729,7 +729,7 @@ public void ParseInt16_OverflowException_Test_35()
729729 ( ( Int64 ) Int16 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Int16 . MaxValue + 100 ) . ToString ( ) } ;
730730 for ( int i = 0 ; i < strArr . Length ; i ++ )
731731 {
732- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
732+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
733733 }
734734 }
735735
@@ -740,7 +740,7 @@ public void ParseUInt16_OverflowException_Test_36()
740740 ( ( Int64 ) UInt16 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) UInt16 . MaxValue + 100 ) . ToString ( ) } ;
741741 for ( int i = 0 ; i < strArr . Length ; i ++ )
742742 {
743- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
743+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
744744 }
745745 }
746746
@@ -751,7 +751,7 @@ public void ParseInt32_OverflowException_Test_37()
751751 ( ( Int64 ) Int32 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Int32 . MaxValue + 100 ) . ToString ( ) } ;
752752 for ( int i = 0 ; i < strArr . Length ; i ++ )
753753 {
754- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
754+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
755755 }
756756 }
757757
@@ -762,7 +762,7 @@ public void ParseUInt32_OverflowException_Test_38()
762762 ( ( Int64 ) UInt32 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) UInt32 . MaxValue + 100 ) . ToString ( ) } ;
763763 for ( int i = 0 ; i < strArr . Length ; i ++ )
764764 {
765- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
765+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
766766 }
767767 }
768768
@@ -774,7 +774,7 @@ public void ParseInt64_OverflowException_Test_39()
774774 "9223372036854775808" , "9223372036854775900" } ;
775775 for ( int i = 0 ; i < strArr . Length ; i ++ )
776776 {
777- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
777+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
778778 }
779779 }
780780
@@ -784,7 +784,7 @@ public void ParseUInt64_OverflowException_Test_40()
784784 string [ ] strArr = new string [ ] { "-1" , "-100" , "18446744073709551616" , "18446744073709551700" } ;
785785 for ( int i = 0 ; i < strArr . Length ; i ++ )
786786 {
787- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
787+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
788788 }
789789 }
790790
@@ -850,27 +850,27 @@ public void box_unbox_Test_1()
850850 Guid guid = ( Guid ) o_guid ;
851851
852852 // Now casts that should throw exception. Any cast that does not throw - means error.
853- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
853+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
854854 MyEnum1 e1 = ( MyEnum1 ) o_enum ;
855855 } ) ;
856856
857857 // Now casts that should throw exception. Any cast that does not throw - means error.
858- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
858+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
859859 int i = ( int ) o_long ;
860860 } ) ;
861861
862862 // Now casts that should throw exception. Any cast that does not throw - means error.
863- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
863+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
864864 int i = ( int ) o_class ;
865865 } ) ;
866866
867867 // Now casts that should throw exception. Any cast that does not throw - means error.
868- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
868+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
869869 int i = ( int ) o_enum ;
870870 } ) ;
871871
872872 // Now casts that should throw exception. Any cast that does not throw - means error.
873- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
873+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
874874 int i = ( int ) o_guid ;
875875 } ) ;
876876 }
0 commit comments