public void Parse_to_mutable() { // Fixture setup var expectedResult = new Simple_Options { StringValue = "strval0", IntSequence = new[] { 9, 7, 8 }, BoolValue = true, LongValue = 9876543210L }; // Exercize system var result = InvokeBuild <Simple_Options>( new[] { "--stringvalue=strval0", "-i", "9", "7", "8", "-x", "9876543210" }); // Verify outcome expectedResult.ShouldBeEquivalentTo(((Parsed <Simple_Options>)result).Value); // Teardown }
public void Parse_to_mutable() { // Fixture setup var expectedResult = new Simple_Options { StringValue = "strval0", IntSequence = new[] { 9, 7, 8 }, BoolValue = true, LongValue = 9876543210L }; // Exercize system var result = InstanceBuilder.Build( Maybe.Just <Func <Simple_Options> >(() => new Simple_Options()), new[] { "--stringvalue=strval0", "-i", "9", "7", "8", "-x", "9876543210" }, StringComparer.Ordinal, CultureInfo.InvariantCulture, Enumerable.Empty <ErrorType>()); // Verify outcome expectedResult.ShouldBeEquivalentTo(((Parsed <Simple_Options>)result).Value); // Teardown }