[tests] Improve assert to give more information about assertion failure.

This commit is contained in:
Rolf Bjarne Kvinge 2022-03-28 14:09:38 +02:00
Родитель 0cd20ca533
Коммит c75bbc3d59
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -36,7 +36,7 @@ namespace LinkSdk {
#else
const string prefix = "System.Core, ";
#endif
Assert.True (aes.GetType ().Assembly.FullName.StartsWith (prefix, StringComparison.Ordinal), prefix);
Assert.That (aes.GetType ().Assembly.FullName, Does.StartWith (prefix), prefix);
}
static int trust_validation_callback;