Obsolete TestPathUtilities (dotnet/extensions#1698)
\n\nCommit migrated from da5dee978f
This commit is contained in:
parent
e4f03d9696
commit
213076ff4b
|
|
@ -6,6 +6,7 @@ using System.IO;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Testing
|
namespace Microsoft.AspNetCore.Testing
|
||||||
{
|
{
|
||||||
|
[Obsolete("This API is obsolete and the pattern its usage encouraged should not be used anymore. See https://github.com/aspnet/Extensions/issues/1697 for details.")]
|
||||||
public class TestPathUtilities
|
public class TestPathUtilities
|
||||||
{
|
{
|
||||||
public static string GetRepoRootDirectory()
|
public static string GetRepoRootDirectory()
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ namespace Microsoft.AspNetCore.Testing
|
||||||
{
|
{
|
||||||
public class TestPathUtilitiesTest
|
public class TestPathUtilitiesTest
|
||||||
{
|
{
|
||||||
|
// Entire test pending removal - see https://github.com/aspnet/Extensions/issues/1697
|
||||||
|
#pragma warning disable 0618
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void GetSolutionRootDirectory_ResolvesSolutionRoot()
|
public void GetSolutionRootDirectory_ResolvesSolutionRoot()
|
||||||
{
|
{
|
||||||
|
|
@ -27,5 +30,6 @@ namespace Microsoft.AspNetCore.Testing
|
||||||
var exception = Assert.Throws<Exception>(() => TestPathUtilities.GetSolutionRootDirectory("NotTesting"));
|
var exception = Assert.Throws<Exception>(() => TestPathUtilities.GetSolutionRootDirectory("NotTesting"));
|
||||||
Assert.Equal($"Solution file NotTesting.sln could not be found in {AppContext.BaseDirectory} or its parent directories.", exception.Message);
|
Assert.Equal($"Solution file NotTesting.sln could not be found in {AppContext.BaseDirectory} or its parent directories.", exception.Message);
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0618
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue