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

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter17.Listing17_07a.Tests
{
    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        public void SortedDictionaryOutputOrder()
        {
            string expected = string.Join(
                System.Environment.NewLine,
                "Error","Information", "Verbose", "Warning");

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