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()
8585 Text = text
8686 } ;
8787 entry . Behaviors . Add ( behavior ) ;
88+
89+ //Act
90+ await behavior . ForceValidate ( TestContext . Current . CancellationToken ) ;
8891
89- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) => await behavior . ForceValidate ( TestContext . Current . CancellationToken ) ) ;
92+ // Assert
93+ Assert . False ( behavior . IsValid ) ;
9094 }
9195
9296 [ Fact ( Timeout = ( int ) TestDuration . Short ) ]
Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ public int MaximumDecimalPlaces
7676 /// <inheritdoc/>
7777 protected override ValueTask < bool > ValidateAsync ( string ? value , CancellationToken token )
7878 {
79- ArgumentNullException . ThrowIfNull ( value ) ;
80-
8179 if ( ! ( double . TryParse ( value , out var numeric )
8280 && numeric >= MinimumValue
8381 && numeric <= MaximumValue ) )
You can’t perform that action at this time.
0 commit comments