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