示例#1
0
        public void InitializeFromCmdLine_EmptyPrefixAndAssignmentDelimiterEqualitySign_CmdLineArgumentParsed()
        {
            var cmdLineObjectWithEmptyPrefix = new CmdLineObjectWithEmptyPrefixAssignmentDelimiterEqualitySign();

            cmdLineObjectWithEmptyPrefix.InitializeFromCmdLine("Car=Lamborghini");

            cmdLineObjectWithEmptyPrefix.Car.Should().Be(Car.Lamborghini);
        }
示例#2
0
        InitializeFromCmdLine_EmptyPrefixAndAssignmentDelimiterEqualitySignValueSurroundedByDoubleQuotes_FullPathWithoutDoubleQuotes
            ()
        {
            var cmdLineObjectWithEmptyPrefix = new CmdLineObjectWithEmptyPrefixAssignmentDelimiterEqualitySign();

            cmdLineObjectWithEmptyPrefix.InitializeFromCmdLine(@"FullPath=""C:\Program Files\bizark\""");

            cmdLineObjectWithEmptyPrefix.FullPath.Should().Be(@"C:\Program Files\bizark\");
        }