This commit is contained in:
Timothy Mothra 2022-08-10 18:49:12 -07:00 коммит произвёл GitHub
Родитель b09c78bb52
Коммит 9b3e18b00c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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(