2017-04-12 23:03:45 +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 System.Linq;
|
|
|
|
using FluentAssertions;
|
|
|
|
using Microsoft.DotNet.Tools.Run;
|
|
|
|
using Xunit;
|
|
|
|
using Xunit.Abstractions;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tests.ParserTests
|
|
|
|
{
|
|
|
|
public class RunParserTests
|
|
|
|
{
|
|
|
|
public RunParserTests(ITestOutputHelper output)
|
|
|
|
{
|
|
|
|
this.output = output;
|
|
|
|
}
|
|
|
|
|
|
|
|
private readonly ITestOutputHelper output;
|
|
|
|
|
|
|
|
[Fact]
|
2017-08-14 00:48:27 +00:00
|
|
|
public void RunParserCanGetArgumentFromDoubleDash()
|
2017-04-12 23:03:45 +00:00
|
|
|
{
|
|
|
|
var runCommand = RunCommand.FromArgs(new[]{ "--", "foo" });
|
|
|
|
runCommand.Args.Single().Should().Be("foo");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|