File: Microsoft\VisualBasic\ApplicationServices\ConsoleApplicationBaseTests.cs
Web Access
Project: src\src\Microsoft.VisualBasic\tests\UnitTests\Microsoft.VisualBasic.Tests.csproj (Microsoft.VisualBasic.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.VisualBasic.ApplicationServices.Tests;
 
public class ConsoleApplicationBaseTests
{
    [Fact]
    public void CommandLineArgs()
    {
        ConsoleApplicationBase app = new();
        string[] expected = System.Environment.GetCommandLineArgs().Skip(1).ToArray();
        Assert.Equal(expected, app.CommandLineArgs);
    }
}