Пример #1
0
        /// <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);
        }
Пример #2
0
        public void WriteWithNullThrows()
        {
            var sut = new TextOutput(new StringWriter());

            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Write(null));
        }
Пример #3
0
        public void WriteCallsInnerOutput()
        {
            var writer = new StringWriter();
            var sut    = new TextOutput(writer);

            sut.Write("line");
            Assert.Equal("line", writer.ToString());
        }