85 references to MockElementLocation
Microsoft.Build.Engine.UnitTests (85)
BackEnd\SdkResolverLoader_Tests.cs (10)
47
var resolvers = loader.LoadAllResolvers(new
MockElementLocation
("file"));
78
var files = strategy.FindPotentialSdkResolvers(root, new
MockElementLocation
("file"));
110
var resolversFound = loader.FindPotentialSdkResolvers(root, new
MockElementLocation
("file"));
233
var resolversFound = loader.FindPotentialSdkResolvers(root, new
MockElementLocation
("file"));
259
var resolversManifestsFound = loader.FindPotentialSdkResolversManifests(root, new
MockElementLocation
("file"));
286
var ex = Should.Throw<InvalidProjectFileException>(() => loader.FindPotentialSdkResolvers(root, new
MockElementLocation
("file")));
302
var ex = Should.Throw<InvalidProjectFileException>(() => loader.FindPotentialSdkResolvers(root, new
MockElementLocation
("file")));
326
var ex = Should.Throw<InvalidProjectFileException>(() => loader.FindPotentialSdkResolvers(root, new
MockElementLocation
("file")));
348
IReadOnlyList<SdkResolverBase> resolvers = loader.LoadAllResolvers(new
MockElementLocation
("file"));
388
IReadOnlyList<string> resolvers = loader.FindPotentialSdkResolvers(testRoot, new
MockElementLocation
("file"));
BackEnd\SdkResolverService_Tests.cs (24)
55
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
98
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
115
SdkResolverException e = Should.Throw<SdkResolverException>(() => service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true));
130
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
148
new
MockElementLocation
("file"),
194
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
211
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
225
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
243
service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
259
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
283
service.ResolveSdk(submissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath");
286
service.ResolveSdk(submissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe(MockSdkResolverWithState.Expected);
300
service.ResolveSdk(submissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath");
303
service.ResolveSdk(submissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath");
317
service.ResolveSdk(submissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("defaultpath");
367
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
373
result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, new SdkReference("foo", "2.0.0", null), _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
449
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
486
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
533
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
579
var result = service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true);
626
_ => service.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new
MockElementLocation
("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true));
659
new
MockElementLocation
("file"),
690
new
MockElementLocation
("file"),
Evaluation\Expander_Tests.cs (1)
3420
MockElementLocation mockElementLocation = new
MockElementLocation
(Path.Combine(ObjectModelHelpers.TempProjectDir, "one", "two", "three", "four", "five", Path.GetRandomFileName()));
Evaluation\ItemSpec_Tests.cs (2)
51
var itemSpecFromAbsolute = CreateItemSpecFrom(absoluteSpec, CreateExpander(new Dictionary<string, string[]>()), new
MockElementLocation
(projectFile));
52
var itemSpecFromRelative = CreateItemSpecFrom("s.cs", CreateExpander(new Dictionary<string, string[]>()), new
MockElementLocation
(projectFile));
Evaluation\UsedUninitializedProperties_Tests.cs (2)
25
IElementLocation location1 = new
MockElementLocation
("File1");
26
IElementLocation location2 = new
MockElementLocation
("File2");
Instance\ProjectTaskInstance_Internal_Tests.cs (3)
40
{"p1", ("v1", new
MockElementLocation
("p1")) }
52
{"p1", ("v1", new
MockElementLocation
("p1")) },
53
{"p2", ("v2", new
MockElementLocation
("p2")) }
TestData\ProjectInstanceTestObjects.cs (43)
23
new
MockElementLocation
($"location{stringCounter}"),
24
new
MockElementLocation
($"conditionLocation{stringCounter}"),
44
location: new
MockElementLocation
($"location{stringCounter}"),
45
includeLocation: new
MockElementLocation
($"include{stringCounter}"),
46
excludeLocation: new
MockElementLocation
($"remove{stringCounter}"),
47
removeLocation: new
MockElementLocation
($"exclude{stringCounter}"),
48
matchOnMetadataLocation: new
MockElementLocation
($"mm{stringCounter}"),
49
matchOnMetadataOptionsLocation: new
MockElementLocation
($"mmo{stringCounter}"),
50
keepMetadataLocation: new
MockElementLocation
($"km{stringCounter}"),
51
removeMetadataLocation: new
MockElementLocation
($"rm{stringCounter}"),
52
keepDuplicatesLocation: new
MockElementLocation
($"kd{stringCounter}"),
53
conditionLocation: new
MockElementLocation
($"cl{stringCounter}"),
65
new
MockElementLocation
($"location{stringCounter}"),
66
new
MockElementLocation
($"condition{stringCounter}"));
78
new
MockElementLocation
($"location{stringCounter}"),
79
new
MockElementLocation
($"conditionLocation{stringCounter}"),
91
new
MockElementLocation
($"location{stringCounter}"),
92
new
MockElementLocation
($"conditionLocation{stringCounter}"));
102
new
MockElementLocation
($"location{stringCounter}"),
103
new
MockElementLocation
($"executeTargetLocation{stringCounter}"),
104
new
MockElementLocation
($"conditionLocation{stringCounter}"));
128
new
MockElementLocation
($"location{stringCounter}"),
129
new
MockElementLocation
($"conditionLocation{stringCounter}"),
130
new
MockElementLocation
($"coeLocation{stringCounter}"),
131
new
MockElementLocation
($"msbrLocation{stringCounter}"),
132
new
MockElementLocation
($"msbaLocation{stringCounter}"));
143
new
MockElementLocation
($"location{stringCounter}"),
144
new
MockElementLocation
($"propertyLocation{stringCounter}"),
145
new
MockElementLocation
($"taskParamLocation{stringCounter}"),
146
new
MockElementLocation
($"conditionLocation{stringCounter}"));
157
new
MockElementLocation
($"location{stringCounter}"),
158
new
MockElementLocation
($"itemLocation{stringCounter}"),
159
new
MockElementLocation
($"taskParamLocation{stringCounter}"),
160
new
MockElementLocation
($"conditionLocation{stringCounter}"));
182
new
MockElementLocation
($"location{stringCounter}"),
183
new
MockElementLocation
($"conditionLocation{stringCounter}"),
184
new
MockElementLocation
($"inputsLocation{stringCounter}"),
185
new
MockElementLocation
($"outputsLocation{stringCounter}"),
186
new
MockElementLocation
($"returnsLocation{stringCounter}"),
187
new
MockElementLocation
($"kdoLocation{stringCounter}"),
188
new
MockElementLocation
($"dotLocation{stringCounter}"),
189
new
MockElementLocation
($"btLocation{stringCounter}"),
190
new
MockElementLocation
($"atLocation{stringCounter}"),