2016-08-22 20:20:17 +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.
|
|
|
|
|
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using Microsoft.DotNet.Tools.Test;
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Dotnet.Tools.Test.Tests
|
|
|
|
|
{
|
2016-08-29 16:46:12 +00:00
|
|
|
|
public class GivenAParameterTestRunnerNameResolver
|
2016-08-22 20:20:17 +00:00
|
|
|
|
{
|
|
|
|
|
private const string SomeTestRunner = "Some test runner";
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public void It_returns_the_runner_based_on_the_parameter()
|
|
|
|
|
{
|
2016-08-29 16:46:12 +00:00
|
|
|
|
var parameterTestRunnerResolver = new ParameterTestRunnerNameResolver(SomeTestRunner);
|
2016-08-22 20:20:17 +00:00
|
|
|
|
|
|
|
|
|
var testRunner = parameterTestRunnerResolver.ResolveTestRunner();
|
|
|
|
|
|
|
|
|
|
testRunner.Should().Be($"dotnet-test-{SomeTestRunner}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|