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