using System; using System.Collections.Concurrent; using System.Collections.Generic; using Moq; namespace Terminal.Gui.ApplicationTests; 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); // var componentFactory = new Mock> (); // componentFactory.Setup ( // c => c.CreateWindowSizeMonitor ( // It.IsAny (), // It.IsAny ())) // .Returns (Mock.Of ()); // m.Initialize (new TimedEvents (), // new ConcurrentQueue (), // Mock.Of (), // Mock.Of(), // componentFactory.Object // ); // Assert.NotNull (m.TimedEvents); // Assert.NotNull (m.InputBuffer); // Assert.NotNull (m.InputProcessor); // Assert.NotNull (m.Out); // Assert.NotNull (m.AnsiRequestScheduler); // Assert.NotNull (m.WindowSizeMonitor); //} }