using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_26.Tests
{
    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        public void DictionaryInitialization()
        {
            string expected = @"Okulary dwuogniskowe (1784)
Fonograf (1877)

{ Title = Okulary dwuogniskowe, YearOfPublication = 1784 }
{ Title = Fonograf, YearOfPublication = 1877 }
  
{ Title = Okulary dwuogniskowe, Year = 1784 }";

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