public void Parse_to_immutable_instance(string[] arguments, Immutable_Simple_Options expected)
        {
            // Fixture setup in attributes

            // Exercize system
            var result = InvokeBuildImmutable <Immutable_Simple_Options>(
                arguments);

            // Verify outcome
            expected.ShouldBeEquivalentTo(((Parsed <Immutable_Simple_Options>)result).Value);

            // Teardown
        }
Esempio n. 2
0
        public void Parse_to_immutable_instance(string[] arguments, Immutable_Simple_Options expected)
        {
            // Fixture setup in attributes

            // Exercize system
            var result = InstanceBuilder.Build(
                Maybe.Nothing <Func <Immutable_Simple_Options> >(),
                arguments,
                StringComparer.Ordinal,
                CultureInfo.InvariantCulture,
                Enumerable.Empty <ErrorType>());

            // Verify outcome
            expected.ShouldBeEquivalentTo(((Parsed <Immutable_Simple_Options>)result).Value);

            // Teardown
        }