Exemple #1
0
            public void Should_Throw_If_Heat_Runner_Was_Not_Found()
            {
                // Given
                var fixture = new HeatFixture();
                fixture.GivenDefaultToolDoNotExist();

                // When
                var result = Record.Exception(() => fixture.Run());

                // Then
                Assert.IsType<CakeException>(result);
                Assert.Equal("Heat: Could not locate executable.", result?.Message);
            }