@@ -27,8 +27,8 @@ public void Returns_Same_Instance()
2727 public void With_True_Throws_ArgumentException ( )
2828 {
2929 const string ? someString = "123456789" ;
30- Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => val . Length == 9 , nameof ( someString ) ,
31- PreconditionDescription ) ,
30+ Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => val . Length == 9 , PreconditionDescription ,
31+ nameof ( someString ) ) ,
3232 Throws . ArgumentException
3333 . With . Property ( nameof ( ArgumentException . ParamName ) ) . EqualTo ( nameof ( someString ) )
3434 . And . Message . Contains ( PreconditionDescription ) ) ;
@@ -40,8 +40,8 @@ public void With_Invalid_ParamName_Throws_ArgumentException([Values(null, "", "
4040 {
4141 const string ? someString = "Hello World 1235" ;
4242
43- Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => precondition , paramName ! ,
44- PreconditionDescription ) ,
43+ Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => precondition ,
44+ PreconditionDescription , paramName ! ) ,
4545 Throws . InstanceOf < ArgumentException > ( )
4646 . With . Property ( nameof ( ArgumentException . ParamName ) ) . EqualTo ( "paramName" ) ) ;
4747 }
@@ -52,7 +52,7 @@ public void With_Invalid_Description_ParamName_Throws_ArgumentException(
5252 {
5353 const string ? someString = "Hello World 1235" ;
5454
55- Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => precondition , nameof ( someString ) , description ! ) ,
55+ Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => precondition , description ! , nameof ( someString ) ) ,
5656 Throws . InstanceOf < ArgumentException > ( )
5757 . With . Property ( nameof ( ArgumentException . ParamName ) ) . EqualTo ( "preconditionDescription" ) ) ;
5858 }
@@ -61,8 +61,8 @@ public void With_Invalid_Description_ParamName_Throws_ArgumentException(
6161 public void With_Null_Value_Throws_ArgumentNullException ( )
6262 {
6363 const string ? someString = null ;
64- Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => val . Length > 100 , nameof ( someString ) ,
65- PreconditionDescription ) ,
64+ Assert . That ( ( ) => Arguments . DoesNotComplyWith ( someString , val => val . Length > 100 ,
65+ PreconditionDescription , nameof ( someString ) ) ,
6666 Throws . ArgumentNullException
6767 . With . Property ( nameof ( ArgumentException . ParamName ) ) . EqualTo ( "value" )
6868 . And . Message . Contains ( "cannot be null" ) ) ;
0 commit comments