8e432e567a
Moving dotnet test command to its own library that can be shared between dotnet test and the test target in the SDK folder.
24 lines
775 B
C#
24 lines
775 B
C#
// 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 FluentAssertions;
|
|
using Microsoft.DotNet.Tools.Test;
|
|
using Xunit;
|
|
|
|
namespace Microsoft.Dotnet.Tools.Test.Tests
|
|
{
|
|
public class GivenAParameterTestRunnerResolver
|
|
{
|
|
private const string SomeTestRunner = "Some test runner";
|
|
|
|
[Fact]
|
|
public void It_returns_the_runner_based_on_the_parameter()
|
|
{
|
|
var parameterTestRunnerResolver = new ParameterTestRunnerResolver(SomeTestRunner);
|
|
|
|
var testRunner = parameterTestRunnerResolver.ResolveTestRunner();
|
|
|
|
testRunner.Should().Be($"dotnet-test-{SomeTestRunner}");
|
|
}
|
|
}
|
|
}
|