Exemplo n.º 1
0
        public void Should_Throw_If_Executable_Was_Not_Found()
        {
            // Given
            var fixture = new VagrantFixture(r => r.Up());

            fixture.GivenDefaultToolDoNotExist();
            // When
            var action = new Action(() => fixture.Run());

            // Then
            action.ShouldThrow <CakeException>().WithMessage("Vagrant by Hashicorp: Could not locate executable.");
        }