65 instantiations of MockTaskItem
Microsoft.NET.Build.Tasks.UnitTests (65)
GetPublishItemsOutputGroupOutputsTests.cs (2)
12
=
new
(@"C:\work\temp\WindowsDesktopSdkTest_without_ProjectSdk_set\obj\Debug\net5.0\apphost.exe",
23
new
(@"obj\Debug\net5.0\WindowsDesktopSdkTest_without_ProjectSdk_set.dll",
GivenACompilationOptionsConverter.cs (2)
36
new
MockTaskItem
(
70
new
MockTaskItem
(
GivenAConflictResolver.cs (2)
369
new
MockTaskItem
("Platform", new Dictionary<string, string>
400
new
MockTaskItem
("Platform", new Dictionary<string, string>
GivenADependencyContextBuilder.cs (7)
107
new
MockTaskItem
(
114
new
MockTaskItem
(
234
new
MockTaskItem
($"/usr/Path/{reference}.dll", new Dictionary<string, string> {
277
[new
MockTaskItem
($"{kvp.Key}.resource", new Dictionary<string, string>() {
414
new
MockTaskItem
(
422
new
MockTaskItem
(
430
new
MockTaskItem
(
GivenAGenerateRuntimeConfigurationFiles.cs (7)
45
new
MockTaskItem
(
86
new
MockTaskItem
(
93
new
MockTaskItem
(
100
new
MockTaskItem
(
146
new
MockTaskItem
(
153
new
MockTaskItem
(
193
new
MockTaskItem
(
GivenAPackageOverrideResolver.cs (3)
21
new
MockTaskItem
("Platform", new Dictionary<string, string>
25
new
MockTaskItem
("Platform", new Dictionary<string, string>
58
new
MockTaskItem
("FakePlatform", new Dictionary<string, string>
GivenAProduceContentsAssetsTask.cs (2)
489
=> values.Select(kvp => new
MockTaskItem
(
496
=> new
MockTaskItem
(
GivenARemoveDuplicatePackageReferences.cs (1)
15
=> packages.Select(kvp => new
MockTaskItem
(
GivenAResolvePackageAssetsTask.cs (1)
48
property.SetValue(task, new[] { new
MockTaskItem
() { ItemSpec = property.Name } });
GivenAResolveTargetingPackAssetsTask.cs (7)
59
new
MockTaskItem
("RuntimeFramework1", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}),
60
new
MockTaskItem
("RuntimeFramework2", new Dictionary<string, string>{ ["FrameworkName"] = "Microsoft.Windows.SDK.NET.Ref"}),
158
new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref",
171
new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
215
property.SetValue(task, new[] { new
MockTaskItem
() { ItemSpec = property.Name } });
289
var t when t == typeof(ITaskItem) => new
MockTaskItem
() { ItemSpec = "NewSpec" },
307
runtimeFrameworks: new[] { new
MockTaskItem
("RuntimeFramework1", new Dictionary<string, string>()) },
GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs (6)
16
var sdkReference1 = new
MockTaskItem
(
23
var sdkReference2 = new
MockTaskItem
(
30
var packageReference1 = new
MockTaskItem
(
39
var packageReference2 = new
MockTaskItem
(
47
var packageReference3 = new
MockTaskItem
(
54
var defaultImplicitPackage1 = new
MockTaskItem
(
ProcessFrameworkReferencesTests.cs (25)
116
return new
MockTaskItem
(name, metadata);
121
return new
MockTaskItem
("Microsoft.DotNet.ILCompiler", new Dictionary<string, string>
231
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.AspNetCore.App", new Dictionary<string, string>()) },
254
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.AspNetCore.App", new Dictionary<string, string>()) },
283
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) },
327
new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()),
328
new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
361
new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()),
362
new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>())
401
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
437
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.Windows.SDK.NET.Ref", new Dictionary<string, string>()) },
473
var nativeAOTRuntimePack = new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>
483
var ilLinkPack = new
MockTaskItem
("Microsoft.NET.ILLink.Tasks", new Dictionary<string, string>
489
var ilCompilerPack = new
MockTaskItem
("Microsoft.DotNet.ILCompiler", new Dictionary<string, string>
517
new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" }),
518
new
MockTaskItem
("Microsoft.macOS", new Dictionary<string, string> { ["IsImplicitlyDefined"] = "true" })
553
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
583
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
609
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
646
new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()),
647
new
MockTaskItem
("Microsoft.iOS", new Dictionary<string, string>())
676
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
714
new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()),
715
new
MockTaskItem
($"Microsoft.{platformId}", new Dictionary<string, string>())
751
FrameworkReferences = new[] { new
MockTaskItem
("Microsoft.NETCore.App", new Dictionary<string, string>()) },
32 references to MockTaskItem
Microsoft.NET.Build.Tasks.UnitTests (32)
GetPublishItemsOutputGroupOutputsTests.cs (2)
11
private readonly
MockTaskItem
_apphost
22
private readonly
MockTaskItem
_dll =
GivenAResolveTargetingPackAssetsTask.cs (2)
156
private static
MockTaskItem
[] DefaultTargetingPacks(string mockPackageDirectory) => new[]
169
private static
MockTaskItem
[] DefaultFrameworkReferences() => new[]
GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs (6)
16
var
sdkReference1 = new MockTaskItem(
23
var
sdkReference2 = new MockTaskItem(
30
var
packageReference1 = new MockTaskItem(
39
var
packageReference2 = new MockTaskItem(
47
var
packageReference3 = new MockTaskItem(
54
var
defaultImplicitPackage1 = new MockTaskItem(
ProcessFrameworkReferencesTests.cs (22)
80
private readonly
MockTaskItem
_validWindowsSDKKnownFrameworkReference = CreateKnownFrameworkReference(
89
private readonly
MockTaskItem
_netcoreAppKnownFrameworkReference = CreateKnownFrameworkReference(
95
private static
MockTaskItem
CreateKnownFrameworkReference(string name, string targetFramework, string version,
119
private static
MockTaskItem
CreateKnownILCompilerPack(string targetFramework, string version, string runtimeIdentifiers)
197
public
MockTaskItem
[]? FrameworkReferences { get; set; }
198
public
MockTaskItem
[]? KnownFrameworkReferences { get; set; }
199
public
MockTaskItem
[]? KnownRuntimePacks { get; set; }
200
public
MockTaskItem
[]? KnownILLinkPacks { get; set; }
201
public
MockTaskItem
[]? KnownILCompilerPacks { get; set; }
218
var
aspNetCoreRef = CreateKnownFrameworkReference("Microsoft.AspNetCore.App",
247
var
aspNetCoreRef = CreateKnownFrameworkReference("Microsoft.AspNetCore.App", "netcoreapp3.0", "1.9.5");
268
var
windowsSDKRef = CreateKnownFrameworkReference("Microsoft.Windows.SDK.NET.Ref",
391
var
netCoreAppRef = CreateKnownFrameworkReference("Microsoft.NETCore.App", "net5.0", "5.0.0",
463
var
netCoreAppRef = CreateKnownFrameworkReference("Microsoft.NETCore.App", "net10.0", "10.0.0-rc.2.25457.102",
466
var
macOSRef = CreateKnownFrameworkReference("Microsoft.macOS", "net10.0", "15.5.10834-ci.darc-net10-0-3e2d6574-3e2e-4233-aab9-99cf75de33e4",
473
var
nativeAOTRuntimePack = new MockTaskItem("Microsoft.NETCore.App", new Dictionary<string, string>
483
var
ilLinkPack = new MockTaskItem("Microsoft.NET.ILLink.Tasks", new Dictionary<string, string>
489
var
ilCompilerPack = new MockTaskItem("Microsoft.DotNet.ILCompiler", new Dictionary<string, string>
632
var
netCoreRef = CreateKnownFrameworkReference("Microsoft.NETCore.App", "net8.0", "8.0.0", "Microsoft.NETCore.App.Runtime.**RID**", "ios-arm64");
633
var
iosFrameworkRef = CreateKnownFrameworkReference("Microsoft.iOS", "net8.0-ios17.0", "17.0.8478",
698
var
platformFrameworkRef = CreateKnownFrameworkReference($"Microsoft.{platformId}", "net8.0", "8.0.0",
740
var
netCoreAppRef = CreateKnownFrameworkReference("Microsoft.NETCore.App", "net8.0", "8.0.0",