51 references to ResourceDescription
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
Emit\CompilationEmitTests.cs (1)
1305var hash_resources = new[] {new ResourceDescription("hash_resource", "snKey.snk",
Emit\ResourceTests.cs (14)
213new ResourceDescription("r2", "file", () => { throw new Exception("bad stuff"); }, false) 224new ResourceDescription("r2", "file", () => null, false) 243new ResourceDescription("A", "x.goo", dataProvider, true), 244new ResourceDescription("A", "y.goo", dataProvider, true) 296new ResourceDescription("A", "x.goo", dataProvider, true), 297new ResourceDescription("B", "x.goo", dataProvider, true) 343new ResourceDescription("A", "x.goo", dataProvider, true), 344new ResourceDescription("A", "x.goo", dataProvider, true) 357new ResourceDescription("A", "x.goo", dataProvider, true), 358new ResourceDescription("B", "x.goo", dataProvider, true), 359new ResourceDescription("B", "y.goo", dataProvider, true) 372new ResourceDescription("A", "goo.dll", dataProvider, true), 385new ResourceDescription("A", "netmodule1.netmodule", dataProvider, true), 777new ResourceDescription(r2Name, "nonExistent", () => { throw new NotSupportedException("error in data provider"); }, false)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Assembly.cs (1)
580var hash_resources = new[] {new ResourceDescription("hash_resource", "snKey.snk",
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NameLengthTests.cs (6)
571new ResourceDescription("name1", "path1", dataProvider, false), //fine 572new ResourceDescription(s_longSymbolName, "path2", dataProvider, false), //fine 573new ResourceDescription("name2", s_longPathName, dataProvider, false), //fine 574new ResourceDescription(s_longSymbolName + 1, "path3", dataProvider, false), //name error 575new ResourceDescription("name3", s_longPathName + 2, dataProvider, false), //path error 576new ResourceDescription(s_longSymbolName + 3, s_longPathName + 4, dataProvider, false), //name and path errors
Microsoft.CodeAnalysis.UnitTests (20)
ResourceDescriptionTests.cs (20)
22new ResourceDescription("res", "file", data, isPublic: true); 23new ResourceDescription("re/s", "file", data, isPublic: true); 24new ResourceDescription("re\\s", "file", data, isPublic: true); 25new ResourceDescription("re\\s", "fil*<>|e", data, isPublic: true); 28Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, "file", data, isPublic: true)); 29Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, data, isPublic: true)); 30Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", "file", null, isPublic: true)); 35Assert.Throws<ArgumentException>(() => new ResourceDescription("", "file", data, isPublic: true)); 36Assert.Throws<ArgumentException>(() => new ResourceDescription("res", "", data, isPublic: true)); 37Assert.Throws<ArgumentException>(() => new ResourceDescription("res", "", data, isPublic: true)); 38Assert.Throws<ArgumentException>(() => new ResourceDescription("", "file", data, isPublic: true)); 41Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x/x", data, isPublic: true)); 42Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x\\x", data, isPublic: true)); 43Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x:x", data, isPublic: true)); 44Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "\0", data, isPublic: true)); 45Assert.Throws<ArgumentException>(() => new ResourceDescription("", "x", data, isPublic: true)); 46Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx\0xxxx", "", data, isPublic: true)); 47Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx\uD800asdas", "", data, isPublic: true)); 48Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx", "xxx\uD800asdas", data, isPublic: true)); 52new ResourceDescription("x", new string('e', 260), data, true);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AssemblyAttributes.vb (1)
769Dim hash_resources = {New ResourceDescription("hash_resource", "snKey.snk",
Emit\CompilationEmitTests.vb (1)
1155{New ResourceDescription("hash_resource", "snKey.snk", Function() New MemoryStream(TestResources.General.snKey, writable:=False), True)}
Emit\ResourceTests.vb (1)
195manifestResources:={New ResourceDescription("r2", "file", Function() Nothing, False)})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Semantics\NameLengthTests.vb (6)
528New ResourceDescription("name1", "path1", dataProvider, False), 'fine 529New ResourceDescription(s_longSymbolName, "path2", dataProvider, False), 'fine 530New ResourceDescription("name2", s_longPathName, dataProvider, False), 'fine 531New ResourceDescription(s_longSymbolName & 1, "path3", dataProvider, False), 'name error 532New ResourceDescription("name3", s_longPathName & 2, dataProvider, False), 'path error 533New ResourceDescription(s_longSymbolName & 3, s_longPathName & 4, dataProvider, False) 'name And path errors