59 instantiations of ResourceDescription
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Emit\ResourceTests.cs (18)
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)
263new ResourceDescription("A", dataProvider, true),
296new ResourceDescription("A", "x.goo", dataProvider, true),
297new ResourceDescription("B", "x.goo", dataProvider, true)
316new ResourceDescription("A", 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)
804new ResourceDescription(r2Name, () => null, true),
903new ResourceDescription("res", () => stream, false)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
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.Rebuild (1)
Microsoft.CodeAnalysis.UnitTests (23)
ResourceDescriptionTests.cs (23)
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));
31Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, data, isPublic: true));
32Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", 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));
51new ResourceDescription(new string('e', 1024), data, true);
52new ResourceDescription("x", new string('e', 260), data, true);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
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
104 references to ResourceDescription
Microsoft.CodeAnalysis (19)
Microsoft.CodeAnalysis.CSharp (16)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
Microsoft.CodeAnalysis.Rebuild (2)
Microsoft.CodeAnalysis.Test.Utilities (11)
Microsoft.CodeAnalysis.VisualBasic (12)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (13)
Emit\ResourceTests.vb (12)
263Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _
291Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _
385Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
671Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
681result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
708Dim result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
717result = c1.Emit(output, manifestResources:=New ResourceDescription(0) _
728result = c1.Emit(output, manifestResources:=New ResourceDescription(0) _
754Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
763result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
787Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
799result = c1.Emit(output, manifestResources:=New ResourceDescription(2) _
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
System.Windows.Forms.Design.Tests (1)