コード例 #1
0
            public void Should_Throw_If_Format_For_LogFileContent_Is_Null()
            {
                // Given
                var logFileContent             = "foo".ToByteArray();
                BaseEsLintLogFileFormat format = null;

                // When
                var result = Record.Exception(() =>
                                              new EsLintIssuesSettings(logFileContent, format));

                // Then
                result.IsArgumentNullException("format");
            }
コード例 #2
0
            public void Should_Throw_If_Format_For_LogFilePath_Is_Null()
            {
                // Given
                BaseEsLintLogFileFormat format = null;

                using (var tempFile = new ResourceTempFile("Cake.Issues.EsLint.Tests.Testfiles.JsonLogFileFormat.jsonFormatWindows.json"))
                {
                    // When
                    var result = Record.Exception(() =>
                                                  new EsLintIssuesSettings(tempFile.FileName, format));

                    // Then
                    result.IsArgumentNullException("format");
                }
            }