public void TestNoExceptionSendReturnNothing() { var fakeFactory = new LauncherFactoryHandler(null); var manager = new CommandManager(fakeFactory, null); manager.StartAsync(new CreateConfiguration(ConfigType.Pool, CommandApi.Create)); }
public void TestSimpleExceptionThrowsErrorPrintException() { var fakeFactory = new LauncherFactoryHandler(new Exception()); var manager = new CommandManager(fakeFactory, null); var ex = Assert.ThrowsAsync <CommandManager.ErrorPrintException>(async() => await manager.StartAsync(new CreateConfiguration(ConfigType.Pool, CommandApi.Create))); Assert.IsNotNull(ex); }