Prepare test project for dotnet-remove-p2p
This commit is contained in:
parent
78d95b423e
commit
65f699f1cc
12 changed files with 203 additions and 8 deletions
32
test/Msbuild.Tests.Utilities/TestSetup.cs
Normal file
32
test/Msbuild.Tests.Utilities/TestSetup.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System.IO;
|
||||
|
||||
namespace Msbuild.Tests.Utilities
|
||||
{
|
||||
public class TestSetup
|
||||
{
|
||||
public const string TestGroup = "NonRestoredTestProjects";
|
||||
public const string ProjectName = "DotnetAddP2PProjects";
|
||||
|
||||
public string TestRoot { get; private set; }
|
||||
|
||||
private const string ValidRef = "ValidRef";
|
||||
public string ValidRefCsprojName => $"{ValidRef}.csproj";
|
||||
public string ValidRefCsprojRelPath => Path.Combine(ValidRef, ValidRefCsprojName);
|
||||
public string ValidRefCsprojPath => Path.Combine(TestRoot, ValidRefCsprojRelPath);
|
||||
public string ValidRefCsprojRelToOtherProjPath => Path.Combine("..", ValidRefCsprojRelPath);
|
||||
|
||||
private const string Lib = "Lib";
|
||||
public string LibDir => Path.Combine(TestRoot, Lib);
|
||||
public string LibCsprojName => $"{Lib}.csproj";
|
||||
public string LibCsprojPath => Path.Combine(TestRoot, Lib, LibCsprojName);
|
||||
public string LibCsprojRelPath => Path.Combine("..", Lib, LibCsprojName);
|
||||
|
||||
public TestSetup(string testRoot)
|
||||
{
|
||||
TestRoot = testRoot;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue