mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
44 lines
1.7 KiB
C#
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);
|
|
//}
|
|
}
|