Beispiel #1
0
            public void Should_Throw_If_Path_Is_Null()
            {
                // Given
                var commands = new GitHubActionsCommandsFixture().CreateGitHubActionsCommands();

                // When
                var result = Record.Exception(() => commands.AddPath(null));

                // Then
                AssertEx.IsArgumentNullException(result, "path");
            }
Beispiel #2
0
            public void Should_Throw_If_SystemPath_Is_Null()
            {
                // Given
                var commands = new GitHubActionsCommandsFixture()
                               .WithNoGitHubPath()
                               .CreateGitHubActionsCommands();

                var path = "/temp/dev/bin";

                // When
                var result = Record.Exception(() => commands.AddPath(path));

                // Then
                AssertEx.IsCakeException(result, "GitHub Actions Runtime SystemPath missing.");
            }