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