Skip to content

Commit 54fedf2

Browse files
committed
Address comment
1 parent 0238e72 commit 54fedf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/OpenApiKiotaEndToEndTests/ModelStateValidation/ModelStateValidationTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
358358

359359
ErrorObject errorObject = document.Errors.First();
360360
errorObject.Title.Should().Be("Input validation failed.");
361-
errorObject.Detail.Should().Be("The field Age must be between 0.1 exclusive and 122.9 exclusive.");
361+
errorObject.Detail.Should().Be($"The field Age must be between {0.1} exclusive and {122.9} exclusive.");
362362
errorObject.Source.ShouldNotBeNull();
363363
errorObject.Source.Pointer.Should().Be("/data/attributes/age");
364364
}

test/OpenApiNSwagEndToEndTests/ModelStateValidation/ModelStateValidationTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
351351

352352
ErrorObject errorObject = document.Errors.First();
353353
errorObject.Title.Should().Be("Input validation failed.");
354-
errorObject.Detail.Should().Be("The field Age must be between 0.1 exclusive and 122.9 exclusive.");
354+
errorObject.Detail.Should().Be($"The field Age must be between {0.1} exclusive and {122.9} exclusive.");
355355
errorObject.Source.ShouldNotBeNull();
356356
errorObject.Source.Pointer.Should().Be("/data/attributes/age");
357357
}

0 commit comments

Comments
 (0)