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

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

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

                using (var tempFile = new ResourceTempFile("Cake.Issues.MsBuild.Tests.Testfiles.XmlFileLoggerLogFileFormat.FullLog.xml"))
                {
                    // When
                    var result = Record.Exception(() =>
                                                  new MsBuildIssuesSettings(tempFile.FileName, format));

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