コード例 #1
0
        public void Should_save_summary()
        {
            string       filePath     = Guid.NewGuid().ToString();
            const string expectedText = "some expected text";

            try
            {
                _formatter.Stub(f => f.Format(Arg <IFeatureResult[]> .Is.Anything)).Return(expectedText);
                _subject.SaveSummary(filePath);
                Assert.That(File.ReadAllText(filePath), Is.EqualTo(expectedText));
            }
            finally
            {
                File.Delete(filePath);
            }
        }
コード例 #2
0
 /// <summary>
 /// Notifies aggregator that no more features would be added.
 /// This implementation saves result summary in file.
 /// </summary>
 public void Finished()
 {
     _summary.SaveSummary(FilePath);
 }