public void Should_Set_LogFileContent_If_Empty() { // Given byte[] logFileContent = Array.Empty <byte>(); // When var settings = new DupFinderIssuesSettings(logFileContent); // Then settings.LogFileContent.ShouldBe(logFileContent); }
public void Should_Set_LogFileContent() { // Given var logFileContent = "Foo".ToByteArray(); // When var settings = new DupFinderIssuesSettings(logFileContent); // Then settings.LogFileContent.ShouldBe(logFileContent); }
public void Should_Set_LogFileContent_From_LogFilePath() { // Given using (var tempFile = new ResourceTempFile("Cake.Issues.DupFinder.Tests.Testfiles.DupFinder.xml")) { // When var settings = new DupFinderIssuesSettings(tempFile.FileName); // Then settings.LogFileContent.ShouldBe(tempFile.Content); } }