using System; using System.Collections.Concurrent; using System.Collections.Generic; using Moq; namespace UnitTests.ConsoleDrivers.V2; public class MainLoopTTests { [Fact] public void MainLoopT_NotInitialized_Throws() { var m = new MainLoop (); Assert.Throws (() => m.TimedEvents); Assert.Throws (() => m.InputBuffer); Assert.Throws (() => m.InputProcessor); Assert.Throws (() => m.Out); Assert.Throws (() => m.AnsiRequestScheduler); Assert.Throws (() => m.WindowSizeMonitor); m.Initialize (new TimedEvents (), new ConcurrentQueue (), Mock.Of (), Mock.Of()); Assert.NotNull (m.TimedEvents); Assert.NotNull (m.InputBuffer); Assert.NotNull (m.InputProcessor); Assert.NotNull (m.Out); Assert.NotNull (m.AnsiRequestScheduler); Assert.NotNull (m.WindowSizeMonitor); } }