AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter02.Tests/Listing02.22.Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter02.Listing02_22.Tests
{
    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        [ExpectedException(typeof(System.OverflowException))]
        public void Main_IntegerOverFlow_ExceptionThrown()
        {
            IntelliTect.TestTools.Console.ConsoleAssert.Execute("", Program.Main);
        }
    }
}