19 references to TestMetadataReference
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (2)
492var ref3 = new TestMetadataReference(fullPath: @"c:\xml.bms"); 493var ref4 = new TestMetadataReference(fullPath: @"c:\aaa.dll");
Microsoft.CodeAnalysis.Test.Utilities (2)
PDB\TestMetadataReferenceInfo.cs (1)
57var metadataReference = new TestMetadataReference(metadata, fullPath: fullPath);
TestBase.cs (1)
321public static readonly MetadataReference InvalidRef = new TestMetadataReference(fullPath: @"R:\Invalid.dll");
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Compilation\CompilationAPITests.vb (6)
535Dim ref3 = New TestMetadataReference(fullPath:="c:\xml.bms") 536Dim ref4 = New TestMetadataReference(fullPath:="c:\aaa.dll") 1194Dim ref2 = New TestMetadataReference(fullPath:="c:\a\xml.bms") 1196Dim ref4 = New TestMetadataReference(fullPath:="c:\aaa.dll") 1220Dim ref1 = New TestMetadataReference(fullPath:="c:\xml.bms") 1239Dim ref1 = New TestMetadataReference(fullPath:="c:\xml.bms")
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\ProjectInfoTests.cs (3)
66var metadataReference = new TestMetadataReference(); 132var metadataReference = new TestMetadataReference(); 204SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithMetadataReferences(value), opt => opt.MetadataReferences, (MetadataReference)new TestMetadataReference(), allowDuplicates: false);
SolutionTests\SolutionTests.cs (6)
2077var metadataRef = (MetadataReference)new TestMetadataReference(); 2099var metadataRef1 = new TestMetadataReference(); 2100var metadataRef2 = new TestMetadataReference(); 2120var metadataRef1 = new TestMetadataReference(); 2121var metadataRef2 = new TestMetadataReference(); 2135Assert.Throws<InvalidOperationException>(() => solution.RemoveMetadataReference(projectId, new TestMetadataReference()));