public void GivenNull_ThrowsException()
            {
                var exception =
                    Assert.Throws <ArgumentNullException>(
                        () => CommandLineOptionFactory.IsSwitch(null));

                exception.ParamName.Should().Be("method");
            }
            public void GivenModeMethod_ReturnsFalse()
            {
                var method = _driver.GetType().GetMethod("TestPerformance");

                CommandLineOptionFactory.IsSwitch(method).Should().BeFalse();
            }
            public void GivenMethodWithParameters_ReturnsFalse()
            {
                var method = _driver.GetType().GetMethod("Find");

                CommandLineOptionFactory.IsSwitch(method).Should().BeFalse();
            }
            public void GivenMethodMissingDescription_ReturnsFalse()
            {
                var method = _driver.GetType().GetMethod("Verbose");

                CommandLineOptionFactory.IsSwitch(method).Should().BeFalse();
            }
            public void GivenSwitchMethod_ReturnsTrue()
            {
                var method = _driver.GetType().GetMethod("Debug");

                CommandLineOptionFactory.IsSwitch(method).Should().BeTrue();
            }