AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter04.Tests/Listing04.09.Tests.cs
using System.Globalization;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_09.Tests
{
    [TestClass]
    public class ProgramTests
    {
        [TestMethod]
        public void Main_OverflowBoundsOfFloat_WriteInfinity()
        {
            string expected = $"-{NumberFormatInfo.CurrentInfo.PositiveInfinitySymbol}\n" + 
                              $"{NumberFormatInfo.CurrentInfo.PositiveInfinitySymbol}";

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