AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter14.Tests/Listing14.04.InvokingADelegateWithoutCheckingForNull.Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter14.Listing14_04.Tests
{
    using Listing14_04;

    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        public void InvokingDelegateWithoutCheckingForNull()
        {
            string expected = @"Enter temperature: <<1>>Heater: On
Cooler: Off";

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