21 references to TestParseVersion
Microsoft.CodeAnalysis.UnitTests (21)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (21)
445TestParseVersion("1", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor);
446TestParseVersion("65535", 65535, 0, 0, 0, AssemblyIdentityParts.VersionMajor);
449TestParseVersion(".", 0, 0, 0, 0, 0);
450TestParseVersion("1.", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor);
451TestParseVersion("0.1", 0, 1, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor);
452TestParseVersion("1.2", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor);
456TestParseVersion("1..", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor);
457TestParseVersion("1.2.", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor);
458TestParseVersion("1.2.3", 1, 2, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild);
459TestParseVersion(".2.3", 0, 2, 3, 0, AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild);
460TestParseVersion("1..3", 1, 0, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionBuild);
462TestParseVersion("1.2.3.", 1, 2, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild);
463TestParseVersion("1.2..4", 1, 2, 0, 4, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionRevision);
464TestParseVersion("1.2..", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor);
465TestParseVersion("1.2.3.4", 1, 2, 3, 4, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild | AssemblyIdentityParts.VersionRevision);
468TestParseVersion("65535.65535.65535.65535", 65535, 65535, 65535, 65535,
472TestParseVersion("*", 0, 0, 0, 0, AssemblyIdentityParts.VersionMajor);
473TestParseVersion("1.*", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor);
474TestParseVersion("1.2.*", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild);
475TestParseVersion("1.2.3.*", 1, 2, 3, 0, AssemblyIdentityParts.Version);
476TestParseVersion("1.*.2.*", 1, 0, 2, 0, AssemblyIdentityParts.Version);