public void GenerateNoResults()
        {
            // arrange
            var          writer   = new MemoryFileWriter();
            const string filePath = "<memory>";
            var          report   = new XmlReport(writer, filePath);

            // act
            report.Generate(new MetricResult[] { });

            // assert
            Assert.AreEqual("<metrics />", writer.Contents);
            Assert.AreEqual(filePath, writer.FilePath);
        }
        public void GenerateNoResults()
        {
            // arrange
            var writer = new MemoryFileWriter ();
            const string filePath = "<memory>";
            var report = new XmlReport (writer, filePath);

            // act
            report.Generate (new MetricResult[] { });

            // assert
            Assert.AreEqual ("<metrics />", writer.Contents);
            Assert.AreEqual (filePath, writer.FilePath);
        }