7 references to WithAliases
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
2663
Assert.Equal(MetadataReferenceProperties.Assembly.
WithAliases
(new[] { "a" }), parsedArgs.MetadataReferences[1].Properties);
2666
Assert.Equal(MetadataReferenceProperties.Assembly.
WithAliases
(new[] { "b" }).WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[2].Properties);
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\MetadataReferencePropertiesTests.cs (4)
49
Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.Module.
WithAliases
(new[] { "blah" }));
58
Assert.Equal(a.
WithAliases
(null), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, embedInteropTypes: true));
61
Assert.Equal(a.
WithAliases
(new string[0]), new MetadataReferenceProperties(MetadataImageKind.Assembly, default(ImmutableArray<string>), embedInteropTypes: true));
62
Assert.Equal(a.
WithAliases
(new[] { "goo", "aaa" }), new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray.Create("goo", "aaa"), embedInteropTypes: true));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.ICSharpProjectSite.cs (1)
174
ProjectSystemProject.AddMetadataReference(file, existingProperties.
WithAliases
(currentAliases));