fix test for Net7 Preview 7 (#2655)
This commit is contained in:
Родитель
b09c78bb52
Коммит
9b3e18b00c
|
@ -1150,7 +1150,11 @@
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
#if NET7_0_OR_GREATER
|
||||
[ExpectedExceptionWithMessage(typeof(ArgumentException), "Failed to parse configuration value. Property: 'IntegerProperty' Reason: The input string '123a' was not in a correct format.")]
|
||||
#else
|
||||
[ExpectedExceptionWithMessage(typeof(ArgumentException), "Failed to parse configuration value. Property: 'IntegerProperty' Reason: Input string was not in a correct format.")]
|
||||
#endif
|
||||
public void LoadPropertiesThrowsExceptionWithPropertyName()
|
||||
{
|
||||
// parsing this integer will throw "System.FormatException: Input string was not in a correct format."
|
||||
|
@ -1167,7 +1171,11 @@
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
#if NET7_0_OR_GREATER
|
||||
[ExpectedExceptionWithMessage(typeof(ArgumentException), "Failed to parse configuration value. Property: 'IntegerProperty' Reason: The input string '123a' was not in a correct format.")]
|
||||
#else
|
||||
[ExpectedExceptionWithMessage(typeof(ArgumentException), "Failed to parse configuration value. Property: 'IntegerProperty' Reason: Input string was not in a correct format.")]
|
||||
#endif
|
||||
public void LoadProperties_TelemetryClientThrowsException()
|
||||
{
|
||||
string testConfig = Configuration(
|
||||
|
|
Загрузка…
Ссылка в новой задаче