20 references to ResourceDescription
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
Emit\CompilationEmitTests.cs (2)
1251new ResourceDescription(resourceName: "A", () => new MemoryStream(arrayOfEmbeddedData1), isPublic: true)}; // embedded 1253new ResourceDescription(resourceName: "A", () => new MemoryStream(arrayOfEmbeddedData2), isPublic: true)}; // embedded
Emit\ResourceTests.cs (14)
263new ResourceDescription("A", dataProvider, true), 316new ResourceDescription("A", dataProvider, true), 416new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), true), 469new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), true), 480new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), true) 505new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), true) 554new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), true), 555new ResourceDescription(r2Name, () => new MemoryStream(resourceFileData), true) 611new ResourceDescription(r2Name, () => new MemoryStream(resourceFileData), false) 625new ResourceDescription(r1Name, () => new MemoryStream(arrayOfEmbeddedData), false) 727new ResourceDescription(r2Name, () => new MemoryStream(resourceFileData), false) 750new ResourceDescription(r2Name, () => new MemoryStream(resourceFileData), false) 804new ResourceDescription(r2Name, () => null, true), 903new ResourceDescription("res", () => stream, false)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
280var description = new ResourceDescription(name, dataProvider: () => new MemoryStream(content), isPublic);
Microsoft.CodeAnalysis.UnitTests (3)
ResourceDescriptionTests.cs (3)
31Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, data, isPublic: true)); 32Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, isPublic: true)); 51new ResourceDescription(new string('e', 1024), data, true);