-
Notifications
You must be signed in to change notification settings - Fork 1k
/
MockConflictItem.cs
41 lines (31 loc) · 1.19 KB
/
MockConflictItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.NET.Build.Tasks.ConflictResolution;
using NuGet.Versioning;
namespace Microsoft.NET.Build.Tasks.UnitTests.Mocks
{
class MockConflictItem : IConflictItem
{
public MockConflictItem(string name = "System.Ben")
{
Key = name + ".dll";
AssemblyVersion = new Version("1.0.0.0");
ItemType = ConflictItemType.Reference;
Exists = true;
FileName = name + ".dll";
FileVersion = new Version("1.0.0.0");
PackageId = name;
PackageVersion = new NuGetVersion("1.0.0");
DisplayName = name;
}
public string Key { get; set; }
public Version AssemblyVersion { get; set; }
public ConflictItemType ItemType { get; set; }
public bool Exists { get; set; }
public string FileName { get; set; }
public Version FileVersion { get; set; }
public string PackageId { get; set; }
public NuGetVersion PackageVersion { get; set; }
public string DisplayName { get; set; }
}
}