Beispiel #1
0
                public void Should_Throw_If_Context_Is_Null()
                {
                    // Given
                    const string fileName = "git";

                    // When
                    var result = Record.Exception(() =>
                                                  ProcessAliases.StartProcess(null, fileName));

                    // Then
                    Assert.IsArgumentNullException(result, "context");
                }
Beispiel #2
0
                public void Should_Throw_If_Context_Is_Null()
                {
                    // Given
                    const string fileName = "git";
                    var          settings = new ProcessSettings();

                    // When
                    var result = Record.Exception(() =>
                                                  ProcessAliases.StartAndReturnProcess(null, fileName, settings));

                    // Then
                    AssertEx.IsArgumentNullException(result, "context");
                }