[monotouch-test] Fix RejectSslCertificatesServicePointManager test after bad merge (#7203)

This commit is contained in:
Vincent Dondain 2019-10-14 14:14:26 -04:00 коммит произвёл GitHub
Родитель 366da20ff0
Коммит c9d7bb7d0c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -214,6 +214,7 @@ namespace MonoTests.System.Net.Http
Assert.Inconclusive ("Request timedout.");
} else {
// assert the exception type
Assert.IsNotNull (ex, (result == null)? "Expected exception is missing and got no result" : $"Expected exception but got {result.Content.ReadAsStringAsync ().Result}");
Assert.IsInstanceOfType (typeof (HttpRequestException), ex);
Assert.IsNotNull (ex.InnerException);
Assert.IsInstanceOfType (typeof (WebException), ex.InnerException);