Beispiel #1
0
            public void GivenList_AddsEntry()
            {
                var commandLineSwitch = CommandLineOptionFactory.CreateSwitches(_driver).First();
                var help = commandLineSwitch.CreateHelp().ToList();

                help.Should().HaveCount(1);
            }
            public void GivenNullInstance_ThrowsException()
            {
                var exception =
                    Assert.Throws <ArgumentNullException>(
                        () => CommandLineOptionFactory.CreateSwitches(null));

                exception.ParamName.Should().Be("instance");
            }