예제 #1
0
        public void DisplayApplicationNameNoFile()
        {
            // now works without file
            var aboutPage = new AboutPage(new Settings());
            var textWriter = new StringWriter();
            aboutPage.Render(textWriter);

            var output = textWriter.ToString();

            Assert.AreEqual("TEST APP NAME By TEST AUTHOR NAME", output);
        }
예제 #2
0
        public void DisplayApplicationNameFromFile()
        {
            // TODO: Fix
            //still works via file
            var aboutPage = new AboutPage(); // -- hard to TEST!  Need app.config set up just so.
            var textWriter = new StringWriter();
            aboutPage.Render(textWriter);

            var output = textWriter.ToString();

            Assert.AreEqual("Interface Segregation By Steve Smith", output);
        }