12 references to TestProperty
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\DocumentInfoTests.cs (3)
109
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithId(value), opt => opt.Id, documentId, defaultThrows: true);
110
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithName(value), opt => opt.Name, "New", defaultThrows: true);
111
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithTextLoader(value), opt => opt.TextLoader, (TextLoader)new TestTextLoader("text"));
SolutionTests\ProjectInfoTests.cs (8)
187
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithId(value), opt => opt.Id, ProjectId.CreateNewId(), defaultThrows: true);
188
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithVersion(value), opt => opt.Version, VersionStamp.Create());
189
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithName(value), opt => opt.Name, "New", defaultThrows: true);
190
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithAssemblyName(value), opt => opt.AssemblyName, "New", defaultThrows: true);
191
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithFilePath(value), opt => opt.FilePath, "New");
192
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithOutputFilePath(value), opt => opt.OutputFilePath, "New");
193
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithOutputRefFilePath(value), opt => opt.OutputRefFilePath, "New");
194
SolutionTestHelpers.
TestProperty
(instance, (old, value) => old.WithCompilationOutputInfo(value), opt => opt.CompilationOutputInfo, new CompilationOutputInfo("NewPath", TempRoot.Root));
SolutionTests\SolutionTestHelpers.cs (1)
50
TestProperty
(instance, factory, getter, boxedItems, defaultThrows: false);