public void ParseEnumOptions()
        {
            var options = new SimpleOptionsWithEnum();

            bool result = base.Parser.ParseArguments(new string[] { "-s", "data.bin", "-a", "ReadWrite" }, options);

            base.AssertParserSuccess(result);
            Assert.AreEqual("data.bin", options.StringValue);
            Assert.AreEqual(FileAccess.ReadWrite, options.FileAccess);
            Console.WriteLine(options);
        }
        public void ParseEnumOptions()
        {
            var options = new SimpleOptionsWithEnum();

            Result = base.Parser.ParseArguments(new string[] { "-s", "data.bin", "-a", "ReadWrite" }, options);

            ResultShouldBeTrue();
            options.StringValue.Should().Equal("data.bin");
            options.FileAccess.Should().Equal(FileAccess.ReadWrite);
            Console.WriteLine(options);
        }
        public void Parse_enum_options()
        {
            var options = new SimpleOptionsWithEnum();
            var parser = new CommandLineParser();
            var result = parser.ParseArguments(new string[] { "-s", "data.bin", "-a", "ReadWrite" }, options);

            result.Should().BeTrue();
            options.StringValue.Should().Be("data.bin");
            options.FileAccess.Should().Be(FileAccess.ReadWrite);
            Console.WriteLine(options);
        }