14 references to ToAssemblyName
Microsoft.CodeAnalysis.UnitTests (14)
MetadataReferences\AssemblyIdentityTests.cs (4)
310
var an = ai.
ToAssemblyName
();
326
an = ai.
ToAssemblyName
();
341
an = ai.
ToAssemblyName
();
359
Assert.Throws<CultureNotFoundException>(() => ai.
ToAssemblyName
());
MetadataReferences\FusionAssemblyIdentityTests.cs (10)
89
RoundTrip(new AssemblyIdentity("goo").
ToAssemblyName
());
92
var name = new AssemblyIdentity("goo", version: new Version(0xffff, 0xffff, 0xffff, 0xffff)).
ToAssemblyName
();
98
RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4)).
ToAssemblyName
());
101
RoundTrip(new AssemblyIdentity("goo", cultureName: CultureInfo.CurrentCulture.Name).
ToAssemblyName
());
102
RoundTrip(new AssemblyIdentity("goo", cultureName: "").
ToAssemblyName
());
105
RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4), cultureName: "en-US").
ToAssemblyName
());
106
RoundTrip(new AssemblyIdentity("goo", publicKeyOrToken: new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }.AsImmutableOrNull()).
ToAssemblyName
());
107
RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4), cultureName: CultureInfo.CurrentCulture.Name, publicKeyOrToken: new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }.AsImmutableOrNull()).
ToAssemblyName
());
109
RoundTrip(new AssemblyIdentity("goo", isRetargetable: true).
ToAssemblyName
());
110
RoundTrip(new AssemblyIdentity("goo", contentType: AssemblyContentType.WindowsRuntime).
ToAssemblyName
());