File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,12 @@ public async Task IsNull()
85
85
Text = text
86
86
} ;
87
87
entry . Behaviors . Add ( behavior ) ;
88
+
89
+ //Act
90
+ await behavior . ForceValidate ( TestContext . Current . CancellationToken ) ;
88
91
89
- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) => await behavior . ForceValidate ( TestContext . Current . CancellationToken ) ) ;
92
+ // Assert
93
+ Assert . False ( behavior . IsValid ) ;
90
94
}
91
95
92
96
[ Fact ( Timeout = ( int ) TestDuration . Short ) ]
Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ public int MaximumDecimalPlaces
76
76
/// <inheritdoc/>
77
77
protected override ValueTask < bool > ValidateAsync ( string ? value , CancellationToken token )
78
78
{
79
- ArgumentNullException . ThrowIfNull ( value ) ;
80
-
81
79
if ( ! ( double . TryParse ( value , out var numeric )
82
80
&& numeric >= MinimumValue
83
81
&& numeric <= MaximumValue ) )
You can’t perform that action at this time.
0 commit comments