AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter22.Tests/Listing22.05.AsyncMain.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static AddisonWesley.Michaelis.EssentialCSharp.Chapter22.Listing22_01.Tests.ProgramTests;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter22.Listing22_05
{

    [TestClass]
    public class ProgramTests
    {

        [TestMethod]
        public void SynchronizedIncrementAndDecrement()
        {
            Assert.IsTrue(IsIncrementDecrementLikelySynchronized(
                (args)=>Program.Main(args).Result, short.MaxValue));
        }

    }
}
