[tests][linkall] Add a check that the Makefile produced version number is 'legit'. Fixes #4859 (#5005)

History: a marge conflict caused a version string to become "12.3." and
this was found in the API diff much later.

reference: https://github.com/xamarin/xamarin-macios/issues/4859
This commit is contained in:
Sebastien Pouliot 2018-10-18 11:16:24 -04:00 коммит произвёл GitHub
Родитель dca1f4793f
Коммит 5ad55d603e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -41,5 +41,13 @@ namespace LinkAll {
string name = (typeof (TypeDescriptorTest).GetCustomAttributes (false) [0] as TypeConverterAttribute).ConverterTypeName;
Assert.That (name, Is.EqualTo ("LinkAll.CustomConverter, link all, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), "ConverterTypeName");
}
[Test]
public void ConstantsVersion_4859 ()
{
// Check that the Makefile generated a valid version number, e.g. "12.3." was not
// reference: https://github.com/xamarin/xamarin-macios/issues/4859
Assert.True (Version.TryParse (ObjCRuntime.Constants.Version, out var _), "Version");
}
}
}