64 references to TaskRegistrations
Microsoft.Build.Engine.UnitTests (64)
BackEnd\TaskRegistry_Tests.cs (46)
112
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
117
List<TaskRegistry.RegisteredTaskRecord> registrationRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(taskElement.TaskName, null)];
152
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
157
List<TaskRegistry.RegisteredTaskRecord> registrationRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(taskElement.TaskName, null)];
194
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
198
Assert.Equal(2, registry.
TaskRegistrations
.Count); // "Expected only two buckets since two of three tasks have the same name!"
201
List<TaskRegistry.RegisteredTaskRecord> singletonBucket = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(elementList[1].TaskName, null)];
210
List<TaskRegistry.RegisteredTaskRecord> duplicateBucket = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(elementList[0].TaskName, null)];
259
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
264
List<TaskRegistry.RegisteredTaskRecord> registrationRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(taskElement.TaskName, null)];
299
Assert.Equal(2, registry.
TaskRegistrations
.Count); // "Expected only two buckets since two of three tasks have the same name!"
300
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
337
Assert.Equal(3, registry.
TaskRegistrations
.Count); // "Should have three buckets, since two of the tasks are the same."
338
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1127
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1130
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1143
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(expandedtaskName, null)];
1183
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1186
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1198
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity(expandedtaskName, null)];
1221
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1224
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1227
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Hello", null)];
1274
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1276
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1279
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)];
1310
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1312
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1315
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)];
1351
Assert.True(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"].PropertyType.Equals(typeof(String)));
1366
Assert.True(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"].PropertyType.Equals(typeof(String)));
1576
Assert.False(((TaskPropertyInfo)registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Output);
1591
Assert.False(((TaskPropertyInfo)registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Output);
1623
Assert.False(((TaskPropertyInfo)registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Required);
1638
Assert.False(((TaskPropertyInfo)registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Required);
1683
int registeredTaskCount = GetDeepCountOfRegisteredTasks(registry.
TaskRegistrations
);
1685
IDictionary<TaskRegistry.RegisteredTaskIdentity, List<TaskRegistry.RegisteredTaskRecord>> registeredTasks = registry.
TaskRegistrations
;
1688
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)];
1737
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)];
1761
List<TaskRegistry.RegisteredTaskRecord> registeredTaskRecords = registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)];
1780
Assert.False(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.TaskBodyEvaluated.Equals(body));
1798
Assert.False(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.TaskBodyEvaluated.Equals(expandedBody));
1824
Assert.False(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.TaskBodyEvaluated);
1836
Assert.True(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.TaskBodyEvaluated);
1848
Assert.True(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.TaskBodyEvaluated);
2128
Assert.True(registry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"].PropertyType.Equals(paramType));
Definition\ToolsVersion_Tests.cs (11)
52
Assert.True(taskRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(expectedRegisteredTask, null)),
58
Assert.True(taskoverrideRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(expectedRegisteredTask, null)),
64
Assert.False(taskRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(unexpectedRegisteredTask, null)),
70
Assert.False(taskoverrideRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(unexpectedRegisteredTask, null)),
91
Assert.Empty(taskoverrideRegistry.
TaskRegistrations
);
110
Assert.Empty(taskoverrideRegistry.
TaskRegistrations
);
129
Assert.Empty(taskoverrideRegistry.
TaskRegistrations
);
149
Assert.Empty(taskoverrideRegistry.
TaskRegistrations
);
177
Assert.True(taskRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(expectedRegisteredTask, null)),
182
Assert.False(taskRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(unexpectedRegisteredTask, null)),
207
Assert.False(taskRegistry.
TaskRegistrations
.ContainsKey(new TaskRegistry.RegisteredTaskIdentity(unexpectedRegisteredTask, null)),
Instance\ProjectInstance_Internal_Tests.cs (5)
73
project.TaskRegistry.
TaskRegistrations
.Count.ShouldBe(3);
74
project.TaskRegistry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("t0", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af0"));
75
project.TaskRegistry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("t1", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyFile.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), "af1a"));
76
project.TaskRegistry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("t1", null)][1].TaskFactoryAssemblyLoadInfo.AssemblyName.ShouldBe("an1");
77
project.TaskRegistry.
TaskRegistrations
[new TaskRegistry.RegisteredTaskIdentity("t2", null)][0].TaskFactoryAssemblyLoadInfo.AssemblyName.ShouldBe("an2");
TestComparers\TaskRegistryComparers.cs (2)
26
x.
TaskRegistrations
,
27
y.
TaskRegistrations
,