2016-11-22 22:41:56 +00:00
|
|
|
|
// 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.
|
|
|
|
|
|
2016-11-22 18:45:45 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
2016-11-29 23:42:16 +00:00
|
|
|
|
namespace Msbuild.Tests.Utilities
|
2016-11-22 18:45:45 +00:00
|
|
|
|
{
|
2016-11-29 23:42:16 +00:00
|
|
|
|
public class TestSetup
|
2016-11-22 18:45:45 +00:00
|
|
|
|
{
|
|
|
|
|
public const string TestGroup = "NonRestoredTestProjects";
|
|
|
|
|
public const string ProjectName = "DotnetAddP2PProjects";
|
|
|
|
|
|
|
|
|
|
public string TestRoot { get; private set; }
|
|
|
|
|
|
|
|
|
|
private const string ValidRef = "ValidRef";
|
2016-11-30 20:07:13 +00:00
|
|
|
|
public string ValidRefDir => Path.Combine(TestRoot, ValidRef);
|
2016-11-22 18:45:45 +00:00
|
|
|
|
public string ValidRefCsprojName => $"{ValidRef}.csproj";
|
2016-11-22 21:58:16 +00:00
|
|
|
|
public string ValidRefCsprojRelPath => Path.Combine(ValidRef, ValidRefCsprojName);
|
|
|
|
|
public string ValidRefCsprojPath => Path.Combine(TestRoot, ValidRefCsprojRelPath);
|
|
|
|
|
public string ValidRefCsprojRelToOtherProjPath => Path.Combine("..", ValidRefCsprojRelPath);
|
2016-11-22 18:45:45 +00:00
|
|
|
|
|
|
|
|
|
private const string Lib = "Lib";
|
2016-11-22 21:58:16 +00:00
|
|
|
|
public string LibDir => Path.Combine(TestRoot, Lib);
|
2016-11-22 18:45:45 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|