Remove no longer applicable workaround in run-build.ps1. Applied expression bodied properties to solution.

This commit is contained in:
Michael Yanni 2023-11-10 17:07:05 -08:00
parent 03b1532ebf
commit c9ab438e6c
13 changed files with 27 additions and 124 deletions

View file

@ -19,13 +19,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
internal static readonly string DirectorySeparatorStr = new string(DirectorySeparatorChar, 1);
internal const char VolumeSeparatorChar = ':';
private static bool IsUnixLikePlatform
{
get
{
return Path.DirectorySeparatorChar == '/';
}
}
private static bool IsUnixLikePlatform => Path.DirectorySeparatorChar == '/';
internal static bool IsDirectorySeparator(char c)
{

View file

@ -42,12 +42,9 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
}
}
}
public string Path
{
get { return _path; }
}
public string Path => _path;
public DirectoryInfo DirectoryInfo => new DirectoryInfo(Path);
/// <summary>

View file

@ -55,12 +55,9 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{
return new FileStream(_path, FileMode.Open, access);
}
public string Path
{
get { return _path; }
}
public string Path => _path;
public TempFile WriteAllText(string content, Encoding encoding)
{
File.WriteAllText(_path, content, encoding);