public void Two_required_options_at_the_same_set_and_both_are_true() { // Fixture setup var expectedResult = new Options_With_Required_Set_To_True_Within_Same_Set { FtpUrl = "str1", WebUrl = "str2" }; // Exercize system var result = InvokeBuild <Options_With_Required_Set_To_True_Within_Same_Set>( new[] { "--ftpurl", "str1", "--weburl", "str2" }); // Verify outcome expectedResult.Should().BeEquivalentTo(((Parsed <Options_With_Required_Set_To_True_Within_Same_Set>)result).Value); // Teardown }
public void Two_required_options_at_the_same_set_and_both_are_true() { // Fixture setup var expectedResult = new Options_With_Required_Set_To_True_Within_Same_Set { FtpUrl = "str1", WebUrl = "str2" }; // Exercize system var result = InstanceBuilder.Build( Maybe.Just <Func <Options_With_Required_Set_To_True_Within_Same_Set> >(() => new Options_With_Required_Set_To_True_Within_Same_Set()), new[] { "--ftpurl", "str1", "--weburl", "str2" }, StringComparer.Ordinal, CultureInfo.InvariantCulture, Enumerable.Empty <ErrorType>()); // Verify outcome expectedResult.ShouldBeEquivalentTo(((Parsed <Options_With_Required_Set_To_True_Within_Same_Set>)result).Value); // Teardown }