using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_22.Tests
{
    [TestClass]
    public class ExceptionHandlingTests
    {
        [TestMethod]
        public void Main_InputNameAge_ExpectMonthCount()
        {
            string view =
@"Hej, ty!
Wprowadź imię: <<Inigo
>>Wprowadź wiek: <<10
>>Hej, Inigo! Twój wiek w miesiącach to 120.";

            IntelliTect.TestTools.Console.ConsoleAssert.Expect(view,
            () =>
            {
                ExceptionHandling.Main();
            });
        }
    }
}
