public void ShowOneSingleActionRegistered_WhenRegisteringOnlyOneAction() { // // Arrange // var testAction = new StubAction(); BaseStreamDeckAction returnedAction = null; // // Act // using (var SUT = new ActionManager(null)) { var cm = ConnectionManager.Initialize(StubProxy.ValidCommandLineArguments) .RegisterActionType("Unique_Action_ID_1", typeof(StubAction)); SUT.RegisterAction <StubAction>("UUID1"); returnedAction = SUT.GetActionInstance <StubAction>(cm, "UUID1"); } // // Assert // Assert.NotNull(returnedAction); Assert.IsType <StubAction>(returnedAction); }
public void ShowOneSingleActionRegistered_WhenRegisteringOnlyOneAction() { // // Arrange // var testAction = new StubAction(); BaseStreamDeckAction returnedAction; // // Act // using (var SUT = new ActionManager(null)) { SUT.RegisterAction <StubAction>("UUID1"); returnedAction = SUT.GetActionInstance <StubAction>("UUID1"); } // // Assert // Assert.NotNull(returnedAction); Assert.IsType <StubAction>(returnedAction); }