17 references to IsPartialTypeNameMatch
Microsoft.Build (5)
Instance\TaskRegistry.cs (3)
890
if (TypeLoader.
IsPartialTypeNameMatch
(x.Name, y.Name))
1388
!TypeLoader.
IsPartialTypeNameMatch
(RegisteredName, "MSBuild") &&
1389
!TypeLoader.
IsPartialTypeNameMatch
(RegisteredName, "CallTarget"));
TypeLoader.cs (2)
368
if (typeName.Length == 0 || TypeLoader.
IsPartialTypeNameMatch
(desiredTypeInAssembly.Key, typeName))
390
if (_isDesiredType(publicType, null) && (typeName.Length == 0 || TypeLoader.
IsPartialTypeNameMatch
(publicType.FullName, typeName)))
Microsoft.Build.Engine.UnitTests (12)
TypeLoader_Tests.cs (12)
37
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("Csc", "csc")); // ==> exact match
38
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("Microsoft.Build.Tasks.Csc", "Microsoft.Build.Tasks.Csc")); // ==> exact match
39
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("Microsoft.Build.Tasks.Csc", "Csc")); // ==> partial match
40
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("Microsoft.Build.Tasks.Csc", "Tasks.Csc")); // ==> partial match
41
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.ATask+NestedTask", "NestedTask")); // ==> partial match
42
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.ATask\\\\+NestedTask", "NestedTask")); // ==> partial match
43
Assert.False(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.CscTask", "Csc")); // ==> no match
44
Assert.False(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.MyCsc", "Csc")); // ==> no match
45
Assert.False(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.ATask\\.Csc", "Csc")); // ==> no match
46
Assert.False(TypeLoader.
IsPartialTypeNameMatch
("MyTasks.ATask\\\\\\.Csc", "Csc")); // ==> no match
52
Assert.False(TypeLoader.
IsPartialTypeNameMatch
("Microsoft.Build.Tasks.Csc", "Vbc"));
58
Assert.True(TypeLoader.
IsPartialTypeNameMatch
("Csc", "Microsoft.Build.Tasks.Csc"));