public void Should_Throw_If_Settings_Are_Null()
        {
            var fixture = new TestAppRunnerFixture {
                Settings = null
            };

            Action result = () => fixture.Run();

            Assert.Throws <ArgumentNullException>(result);
        }
        public void Should_Throw_If_Settings_Are_Null()
        {
            var fixture = new TestAppRunnerFixture {
                Settings = null
            };

            Action result = () => fixture.Run();

            Assert.That(result, Throws.ArgumentNullException.With.Message.Contains("message"));
        }
        public void Should_Throw_If_TestApp_Executable_Was_Not_Found()
        {
            var fixture = new TestAppRunnerFixture();

            fixture.GivenDefaultToolDoNotExist();
            const string expectedMessage = "TestApp: Could not locate executable";

            Action result = () => fixture.Run();

            Assert.That(result, Throws.TypeOf <CakeException>().With.Message.EqualTo(expectedMessage));
        }