Skip to content

Commit 27be24d

Browse files
authoredJan 9, 2017
Merge pull request #322 from smadala/results-dir-arg
2 parents 29f8d3d + b8a782a commit 27be24d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1739
-976
lines changed
 

‎scripts/build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
5959
# Dotnet build doesn't support --packages yet. See https://github.com/dotnet/cli/issues/2712
6060
$env:NUGET_PACKAGES = $env:TP_PACKAGES_DIR
6161
$env:NUGET_EXE_Version = "3.4.3"
62-
$env:DOTNET_CLI_VERSION = "latest"
62+
$env:DOTNET_CLI_VERSION = "1.0.0-preview5-004384"
6363

6464
#
6565
# Build configuration

‎src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs

+26
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,32 @@ public static string NotNullOrEmpty([ValidatedNotNull]string arg, string paramet
7474
return arg;
7575
}
7676

77+
/// <summary>
78+
/// Validate a string is not null, empty or consists only of white-space characters.
79+
/// </summary>
80+
/// <param name="arg">
81+
/// Input string.
82+
/// </param>
83+
/// <param name="parameterName">
84+
/// Name of the parameter to validate.
85+
/// </param>
86+
/// <returns>
87+
/// Validated string.
88+
/// </returns>
89+
/// <exception cref="ArgumentNullException">
90+
/// Thrown if the input string is null null, empty or consists only of white-space characters.
91+
/// </exception>
92+
[DebuggerStepThrough]
93+
public static string NotNullOrWhiteSpace([ValidatedNotNull]string arg, string parameterName)
94+
{
95+
if (string.IsNullOrWhiteSpace(arg))
96+
{
97+
throw new ArgumentNullException(parameterName);
98+
}
99+
100+
return arg;
101+
}
102+
77103
/// <summary>
78104
/// Throws ArgumentOutOfRangeException if the argument is less than zero.
79105
/// </summary>

0 commit comments

Comments
 (0)
Please sign in to comment.