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

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

                CommandLineOptionFactory.IsMode <BaseDriver>(method).Should().BeTrue();
            }
            public void GivenSwitchMethod_ReturnsFalse()
            {
                var method = _driver.GetType().GetMethod("Debug");

                CommandLineOptionFactory.IsMode <BaseDriver>(method).Should().BeFalse();
            }
            public void GivenParameterMethod_ReturnsFalse()
            {
                var method = _driver.GetType().GetMethod("Find");

                CommandLineOptionFactory.IsMode <BaseDriver>(method).Should().BeFalse();
            }