[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:
Родитель
dca1f4793f
Коммит
5ad55d603e
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче