/// <summary> /// Writes the gioven scores to the configured outputs. /// </summary> /// <param name="results">A set of file matching scores</param> public void WriteOutput() { //TODO: must be selected by settings TextOutput t = new TextOutput(this.Settings); t.Write(this.MatchingResults); }
public void WriteWithNullThrows() { var sut = new TextOutput(new StringWriter()); Assert.Throws <ArgumentNullException>(() => sut.Write(null)); }
public void WriteCallsInnerOutput() { var writer = new StringWriter(); var sut = new TextOutput(writer); sut.Write("line"); Assert.Equal("line", writer.ToString()); }