25 references to CreateFromFactory
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3867
var modelWeakReference = ObjectReference.
CreateFromFactory
(() => compilation.GetSemanticModel(tree));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2843
var sol = ObjectReference.
CreateFromFactory
(() => MSBuildWorkspace.Create().OpenSolutionAsync(GetSolutionFileName("TestSolution.sln")).Result);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
5469
var sourceTextToRelease = ObjectReference.
CreateFromFactory
(static () => SourceText.From(Guid.NewGuid().ToString()));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\LifetimeTests.cs (1)
23
var project = ObjectReference.
CreateFromFactory
(() => CSharpHelpers.CreateCSharpProject(environment, "Test"));
Roslyn.VisualStudio.Next.UnitTests (21)
Services\SolutionServiceTests.cs (21)
992
var objectReference = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1011
var objectReference = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1044
var objectReference1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1045
var objectReference2 = ObjectReference.
CreateFromFactory
(() => document2.GetSemanticModelAsync().GetAwaiter().GetResult());
1084
var objectReference1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1085
var objectReference2 = ObjectReference.
CreateFromFactory
(() => document2.GetSemanticModelAsync().GetAwaiter().GetResult());
1086
var objectReference3 = ObjectReference.
CreateFromFactory
(() => document3.GetSemanticModelAsync().GetAwaiter().GetResult());
1107
var objectReference1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1116
var objectReference2 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document1.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1134
var objectReference1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1145
var objectReference2 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document1.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1163
var objectReference1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1179
var objectReference2 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document1.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1216
var objectReference1_step1 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1217
var objectReference2_step1 = ObjectReference.
CreateFromFactory
(() => document2.GetSemanticModelAsync().GetAwaiter().GetResult());
1233
var oopDocumentReference1_step1 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document1.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1234
var oopDocumentReference2_step1 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document2.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1242
var objectReference1_step2 = ObjectReference.
CreateFromFactory
(() => document1.GetSemanticModelAsync().GetAwaiter().GetResult());
1243
var objectReference2_step2 = ObjectReference.
CreateFromFactory
(() => document2.GetSemanticModelAsync().GetAwaiter().GetResult());
1252
var oopDocumentReference1_step2 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document1.Id).GetSemanticModelAsync().GetAwaiter().GetResult());
1253
var oopDocumentReference2_step2 = ObjectReference.
CreateFromFactory
(() => syncedSolution.GetRequiredDocument(document2.Id).GetSemanticModelAsync().GetAwaiter().GetResult());