16 references to RoundTrip
Microsoft.CodeAnalysis.UnitTests (16)
MetadataReferences\FusionAssemblyIdentityTests.cs (16)
84RoundTrip(new AssemblyName("goo"));
85RoundTrip(new AssemblyName { Name = "~!@#$%^&*()_+={}:\"<>?[];',./" });
86RoundTrip(new AssemblyName("\\,"));
87RoundTrip(new AssemblyName("\\\""));
89RoundTrip(new AssemblyIdentity("goo").ToAssemblyName());
93RoundTrip(name, testFullName: false);
98RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4)).ToAssemblyName());
99RoundTrip(new AssemblyName("goo") { Version = new Version(1, 2, 3, 4) });
101RoundTrip(new AssemblyIdentity("goo", cultureName: CultureInfo.CurrentCulture.Name).ToAssemblyName());
102RoundTrip(new AssemblyIdentity("goo", cultureName: "").ToAssemblyName());
103RoundTrip(new AssemblyName("goo") { CultureInfo = CultureInfo.InvariantCulture });
105RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4), cultureName: "en-US").ToAssemblyName());
106RoundTrip(new AssemblyIdentity("goo", publicKeyOrToken: new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }.AsImmutableOrNull()).ToAssemblyName());
107RoundTrip(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());
109RoundTrip(new AssemblyIdentity("goo", isRetargetable: true).ToAssemblyName());
110RoundTrip(new AssemblyIdentity("goo", contentType: AssemblyContentType.WindowsRuntime).ToAssemblyName());