AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter17.Tests/Listing17.17.UsingForeachWithBinaryTree.Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter17.Listing17_17.Tests
{
    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        public void IteratingAbinaryTree()
        {
            const string expected =
                @"John Fitzgerald Kennedy
Joseph Patrick Kennedy
Patrick Joseph Kennedy
Mary Augusta Hickey
Rose Elizabeth Fitzgerald
John Francis Fitzgerald
Mary Josephine Hannon";

            IntelliTect.TestTools.Console.ConsoleAssert.Expect(expected,
                () => Program.Main());
        }
    }
}