public void Parse_string_scalar_with_required_constraint_as_value(string[] arguments, Options_With_Required_Set_To_True_For_Values expected) { // Fixture setup in attributes // Exercize system var result = InvokeBuild <Options_With_Required_Set_To_True_For_Values>( arguments); // Verify outcome expected.Should().BeEquivalentTo(((Parsed <Options_With_Required_Set_To_True_For_Values>)result).Value); // Teardown }
public void Parse_string_scalar_with_required_constraint_as_value(string[] arguments, Options_With_Required_Set_To_True_For_Values expected) { // Fixture setup in attributes // Exercize system var result = InstanceBuilder.Build( Maybe.Just <Func <Options_With_Required_Set_To_True_For_Values> >(() => new Options_With_Required_Set_To_True_For_Values()), arguments, StringComparer.Ordinal, CultureInfo.InvariantCulture, Enumerable.Empty <ErrorType>()); // Verify outcome expected.ShouldBeEquivalentTo(((Parsed <Options_With_Required_Set_To_True_For_Values>)result).Value); // Teardown }