dotnet-installer/test/dotnet-test.UnitTests/GivenAParameterTestRunnerNameResolver.cs

25 lines
783 B
C#
Raw Normal View History

// 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
{
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);
var testRunner = parameterTestRunnerResolver.ResolveTestRunner();
testRunner.Should().Be($"dotnet-test-{SomeTestRunner}");
}
}
}