Files
Terminal.Gui/Tests/UnitTests/Application/MainLoopTTests.cs
Tig fdeaa8331b Fixes #4298 - Updates test namespaces (#4299)
* Refactored test namespaces.
Moved some tests that were in wrong project.
Code cleanup

* Parrallel -> Parallel
2025-10-20 14:14:38 -06:00

44 lines
1.7 KiB
C#

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Moq;
namespace UnitTests.ApplicationTests;
public class MainLoopTTests
{
//[Fact]
//public void MainLoopT_NotInitialized_Throws()
//{
// var m = new MainLoop<int> ();
// Assert.Throws<NotInitializedException> (() => m.TimedEvents);
// Assert.Throws<NotInitializedException> (() => m.InputBuffer);
// Assert.Throws<NotInitializedException> (() => m.InputProcessor);
// Assert.Throws<NotInitializedException> (() => m.Out);
// Assert.Throws<NotInitializedException> (() => m.AnsiRequestScheduler);
// Assert.Throws<NotInitializedException> (() => m.WindowSizeMonitor);
// var componentFactory = new Mock<IComponentFactory<int>> ();
// componentFactory.Setup (
// c => c.CreateWindowSizeMonitor (
// It.IsAny<IConsoleOutput> (),
// It.IsAny<IOutputBuffer> ()))
// .Returns (Mock.Of <IWindowSizeMonitor>());
// m.Initialize (new TimedEvents (),
// new ConcurrentQueue<int> (),
// Mock.Of <IInputProcessor>(),
// Mock.Of<IConsoleOutput>(),
// 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);
//}
}