@@ -491,49 +491,49 @@ public void UInt64_Boundary_Test_16()
491
491
[ TestMethod ]
492
492
public void SByte_ArgumentNullException_Test_17 ( )
493
493
{
494
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { SByte . Parse ( str ) ; } ) ;
494
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { SByte . Parse ( str ) ; } ) ;
495
495
}
496
496
497
497
[ TestMethod ]
498
498
public void Byte_ArgumentNullException_Test_18 ( )
499
499
{
500
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Byte . Parse ( str ) ; } ) ;
500
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Byte . Parse ( str ) ; } ) ;
501
501
}
502
502
503
503
[ TestMethod ]
504
504
public void Int16_ArgumentNullException_Test_19 ( )
505
505
{
506
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int16 . Parse ( str ) ; } ) ;
506
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int16 . Parse ( str ) ; } ) ;
507
507
}
508
508
509
509
[ TestMethod ]
510
510
public void UInt16_ArgumentNullException_Test_20 ( )
511
511
{
512
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt16 . Parse ( str ) ; } ) ;
512
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt16 . Parse ( str ) ; } ) ;
513
513
}
514
514
515
515
[ TestMethod ]
516
516
public void Int32_ArgumentNullException_Test_21 ( )
517
517
{
518
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int32 . Parse ( str ) ; } ) ;
518
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int32 . Parse ( str ) ; } ) ;
519
519
}
520
520
521
521
[ TestMethod ]
522
522
public void UInt32_ArgumentNullException_Test_22 ( )
523
523
{
524
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt32 . Parse ( str ) ; } ) ;
524
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt32 . Parse ( str ) ; } ) ;
525
525
}
526
526
527
527
[ TestMethod ]
528
528
public void Int64_ArgumentNullException_Test_23 ( )
529
529
{
530
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { Int64 . Parse ( str ) ; } ) ;
530
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { Int64 . Parse ( str ) ; } ) ;
531
531
}
532
532
533
533
[ TestMethod ]
534
534
public void UInt64_ArgumentNullException_Test_24 ( )
535
535
{
536
- Assert . Trows ( typeof ( ArgumentNullException ) , ( ) => { UInt64 . Parse ( str ) ; } ) ;
536
+ Assert . Throws ( typeof ( ArgumentNullException ) , ( ) => { UInt64 . Parse ( str ) ; } ) ;
537
537
}
538
538
539
539
/// <summary>
@@ -581,12 +581,12 @@ public void ParseSByte_FormatException_Test_25()
581
581
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
582
582
for ( int i = 0 ; i < strArr . Length ; i ++ )
583
583
{
584
- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
584
+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
585
585
}
586
586
for ( int i = 0 ; i < 5 ; i ++ )
587
587
{
588
588
String rdmString = GetRandomString ( ) ;
589
- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( rdmString ) ; } ) ;
589
+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( rdmString ) ; } ) ;
590
590
}
591
591
}
592
592
@@ -596,12 +596,12 @@ public void ParseByte_FormatException_Test_26()
596
596
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
597
597
for ( int i = 0 ; i < strArr . Length ; i ++ )
598
598
{
599
- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
599
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
600
600
}
601
601
for ( int i = 0 ; i < 5 ; i ++ )
602
602
{
603
603
String rdmString = GetRandomString ( ) ;
604
- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( rdmString ) ; } ) ;
604
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( rdmString ) ; } ) ;
605
605
}
606
606
}
607
607
@@ -611,12 +611,12 @@ public void ParseInt16_FormatException_Test_27()
611
611
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
612
612
for ( int i = 0 ; i < strArr . Length ; i ++ )
613
613
{
614
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
614
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
615
615
}
616
616
for ( int i = 0 ; i < 5 ; i ++ )
617
617
{
618
618
String rdmString = GetRandomString ( ) ;
619
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( rdmString ) ; } ) ;
619
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( rdmString ) ; } ) ;
620
620
}
621
621
}
622
622
@@ -626,12 +626,12 @@ public void ParseUInt16_FormatException_Test_28()
626
626
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
627
627
for ( int i = 0 ; i < strArr . Length ; i ++ )
628
628
{
629
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
629
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
630
630
}
631
631
for ( int i = 0 ; i < 5 ; i ++ )
632
632
{
633
633
String rdmString = GetRandomString ( ) ;
634
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( rdmString ) ; } ) ;
634
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( rdmString ) ; } ) ;
635
635
}
636
636
}
637
637
@@ -641,12 +641,12 @@ public void ParseInt32_FormatException_Test_29()
641
641
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
642
642
for ( int i = 0 ; i < strArr . Length ; i ++ )
643
643
{
644
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
644
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
645
645
}
646
646
for ( int i = 0 ; i < 5 ; i ++ )
647
647
{
648
648
String rdmString = GetRandomString ( ) ;
649
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( rdmString ) ; } ) ;
649
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( rdmString ) ; } ) ;
650
650
}
651
651
}
652
652
@@ -656,12 +656,12 @@ public void ParseUInt32_FormatException_Test_30()
656
656
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
657
657
for ( int i = 0 ; i < strArr . Length ; i ++ )
658
658
{
659
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
659
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
660
660
}
661
661
for ( int i = 0 ; i < 5 ; i ++ )
662
662
{
663
663
String rdmString = GetRandomString ( ) ;
664
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( rdmString ) ; } ) ;
664
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( rdmString ) ; } ) ;
665
665
}
666
666
}
667
667
@@ -671,12 +671,12 @@ public void ParseInt64_FormatException_Test_31()
671
671
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
672
672
for ( int i = 0 ; i < strArr . Length ; i ++ )
673
673
{
674
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
674
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
675
675
}
676
676
for ( int i = 0 ; i < 5 ; i ++ )
677
677
{
678
678
String rdmString = GetRandomString ( ) ;
679
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( rdmString ) ; } ) ;
679
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( rdmString ) ; } ) ;
680
680
}
681
681
}
682
682
@@ -686,12 +686,12 @@ public void ParseUInt64_FormatException_Test_32()
686
686
String [ ] strArr = new String [ ] { "" , "1,234" , "123e5" , "a" , "3.14159265358979" } ;
687
687
for ( int i = 0 ; i < strArr . Length ; i ++ )
688
688
{
689
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
689
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
690
690
}
691
691
for ( int i = 0 ; i < 5 ; i ++ )
692
692
{
693
693
String rdmString = GetRandomString ( ) ;
694
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( rdmString ) ; } ) ;
694
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( rdmString ) ; } ) ;
695
695
}
696
696
}
697
697
@@ -707,7 +707,7 @@ public void ParseSByte_OverflowException_Test_33()
707
707
( ( Int64 ) SByte . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) SByte . MaxValue + 100 ) . ToString ( ) } ;
708
708
for ( int i = 0 ; i < strArr . Length ; i ++ )
709
709
{
710
- Assert . Trows ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
710
+ Assert . Throws ( typeof ( Exception ) , ( ) => { SByte . Parse ( strArr [ i ] ) ; } ) ;
711
711
}
712
712
}
713
713
@@ -718,7 +718,7 @@ public void ParseByte_OverflowException_Test_34()
718
718
( ( Int64 ) Byte . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Byte . MaxValue + 100 ) . ToString ( ) } ;
719
719
for ( int i = 0 ; i < strArr . Length ; i ++ )
720
720
{
721
- Assert . Trows ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
721
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Byte . Parse ( strArr [ i ] ) ; } ) ;
722
722
}
723
723
}
724
724
@@ -729,7 +729,7 @@ public void ParseInt16_OverflowException_Test_35()
729
729
( ( Int64 ) Int16 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Int16 . MaxValue + 100 ) . ToString ( ) } ;
730
730
for ( int i = 0 ; i < strArr . Length ; i ++ )
731
731
{
732
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
732
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int16 . Parse ( strArr [ i ] ) ; } ) ;
733
733
}
734
734
}
735
735
@@ -740,7 +740,7 @@ public void ParseUInt16_OverflowException_Test_36()
740
740
( ( Int64 ) UInt16 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) UInt16 . MaxValue + 100 ) . ToString ( ) } ;
741
741
for ( int i = 0 ; i < strArr . Length ; i ++ )
742
742
{
743
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
743
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt16 . Parse ( strArr [ i ] ) ; } ) ;
744
744
}
745
745
}
746
746
@@ -751,7 +751,7 @@ public void ParseInt32_OverflowException_Test_37()
751
751
( ( Int64 ) Int32 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) Int32 . MaxValue + 100 ) . ToString ( ) } ;
752
752
for ( int i = 0 ; i < strArr . Length ; i ++ )
753
753
{
754
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
754
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int32 . Parse ( strArr [ i ] ) ; } ) ;
755
755
}
756
756
}
757
757
@@ -762,7 +762,7 @@ public void ParseUInt32_OverflowException_Test_38()
762
762
( ( Int64 ) UInt32 . MaxValue + 1 ) . ToString ( ) , ( ( Int64 ) UInt32 . MaxValue + 100 ) . ToString ( ) } ;
763
763
for ( int i = 0 ; i < strArr . Length ; i ++ )
764
764
{
765
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
765
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt32 . Parse ( strArr [ i ] ) ; } ) ;
766
766
}
767
767
}
768
768
@@ -774,7 +774,7 @@ public void ParseInt64_OverflowException_Test_39()
774
774
"9223372036854775808" , "9223372036854775900" } ;
775
775
for ( int i = 0 ; i < strArr . Length ; i ++ )
776
776
{
777
- Assert . Trows ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
777
+ Assert . Throws ( typeof ( Exception ) , ( ) => { Int64 . Parse ( strArr [ i ] ) ; } ) ;
778
778
}
779
779
}
780
780
@@ -784,7 +784,7 @@ public void ParseUInt64_OverflowException_Test_40()
784
784
string [ ] strArr = new string [ ] { "-1" , "-100" , "18446744073709551616" , "18446744073709551700" } ;
785
785
for ( int i = 0 ; i < strArr . Length ; i ++ )
786
786
{
787
- Assert . Trows ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
787
+ Assert . Throws ( typeof ( Exception ) , ( ) => { UInt64 . Parse ( strArr [ i ] ) ; } ) ;
788
788
}
789
789
}
790
790
@@ -850,27 +850,27 @@ public void box_unbox_Test_1()
850
850
Guid guid = ( Guid ) o_guid ;
851
851
852
852
// Now casts that should throw exception. Any cast that does not throw - means error.
853
- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
853
+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
854
854
MyEnum1 e1 = ( MyEnum1 ) o_enum ;
855
855
} ) ;
856
856
857
857
// Now casts that should throw exception. Any cast that does not throw - means error.
858
- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
858
+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
859
859
int i = ( int ) o_long ;
860
860
} ) ;
861
861
862
862
// Now casts that should throw exception. Any cast that does not throw - means error.
863
- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
863
+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
864
864
int i = ( int ) o_class ;
865
865
} ) ;
866
866
867
867
// Now casts that should throw exception. Any cast that does not throw - means error.
868
- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
868
+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
869
869
int i = ( int ) o_enum ;
870
870
} ) ;
871
871
872
872
// Now casts that should throw exception. Any cast that does not throw - means error.
873
- Assert . Trows ( typeof ( InvalidCastException ) , ( ) => {
873
+ Assert . Throws ( typeof ( InvalidCastException ) , ( ) => {
874
874
int i = ( int ) o_guid ;
875
875
} ) ;
876
876
}
0 commit comments