@@ -66,14 +66,14 @@ public void CanParseInt64(string bencode, long value)
6666 public void LeadingZeros_ThrowsInvalidBencodeException ( string bencode )
6767 {
6868 Action action = ( ) => Parser . ParseString ( bencode ) ;
69- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
69+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
7070 }
7171
7272 [ Fact ]
7373 public void MinusZero_ThrowsInvalidBencodeException ( )
7474 {
7575 Action action = ( ) => Parser . ParseString ( "i-0e" ) ;
76- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
76+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
7777 }
7878
7979 [ Theory ]
@@ -84,7 +84,7 @@ public void MinusZero_ThrowsInvalidBencodeException()
8484 public void MissingEndChar_ThrowsInvalidBencodeException ( string bencode )
8585 {
8686 Action action = ( ) => Parser . ParseString ( bencode ) ;
87- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
87+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
8888 }
8989
9090 [ Theory ]
@@ -95,14 +95,14 @@ public void MissingEndChar_ThrowsInvalidBencodeException(string bencode)
9595 public void InvalidFirstChar_ThrowsInvalidBencodeException ( string bencode )
9696 {
9797 Action action = ( ) => Parser . ParseString ( bencode ) ;
98- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
98+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
9999 }
100100
101101 [ Fact ]
102102 public void JustNegativeSign_ThrowsInvalidBencodeException ( )
103103 {
104104 Action action = ( ) => Parser . ParseString ( "i-e" ) ;
105- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
105+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
106106 }
107107
108108 [ Theory ]
@@ -113,7 +113,7 @@ public void JustNegativeSign_ThrowsInvalidBencodeException()
113113 public void MoreThanOneNegativeSign_ThrowsInvalidBencodeException ( string bencode )
114114 {
115115 Action action = ( ) => Parser . ParseString ( bencode ) ;
116- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
116+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
117117 }
118118
119119 [ Theory ]
@@ -126,14 +126,14 @@ public void MoreThanOneNegativeSign_ThrowsInvalidBencodeException(string bencode
126126 public void NonDigit_ThrowsInvalidBencodeException ( string bencode )
127127 {
128128 Action action = ( ) => Parser . ParseString ( bencode ) ;
129- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
129+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
130130 }
131131
132132 [ Fact ]
133133 public void BelowMinimumLength_ThrowsInvalidBencodeException ( )
134134 {
135135 Action action = ( ) => Parser . ParseString ( "ie" ) ;
136- action . ShouldThrow < InvalidBencodeException < BNumber > > ( ) ;
136+ action . Should ( ) . Throw < InvalidBencodeException < BNumber > > ( ) ;
137137 }
138138
139139 [ Theory ]
@@ -142,7 +142,7 @@ public void BelowMinimumLength_ThrowsInvalidBencodeException()
142142 public void LargerThanInt64_ThrowsUnsupportedException ( string bencode )
143143 {
144144 Action action = ( ) => Parser . ParseString ( bencode ) ;
145- action . ShouldThrow < UnsupportedBencodeException < BNumber > > ( ) ;
145+ action . Should ( ) . Throw < UnsupportedBencodeException < BNumber > > ( ) ;
146146 }
147147
148148 [ Theory ]
@@ -152,7 +152,7 @@ public void LargerThanInt64_ThrowsUnsupportedException(string bencode)
152152 public void LongerThanMaxDigits19_ThrowsUnsupportedException ( string bencode )
153153 {
154154 Action action = ( ) => Parser . ParseString ( bencode ) ;
155- action . ShouldThrow < UnsupportedBencodeException < BNumber > > ( ) ;
155+ action . Should ( ) . Throw < UnsupportedBencodeException < BNumber > > ( ) ;
156156 }
157157 }
158158}
0 commit comments