Ejemplo n.º 1
0
        public void Send_ExecuteStepDone()
        {
            ValveStub valve = (ValveStub)ServiceProvider.GetRequiredService <IValve>();

            valveManager.valves.Add(valve);
            Task <bool> task = valveManager.Send();

            Assert.IsTrue(valve.executeStepDone);
        }
Ejemplo n.º 2
0
        public void Send_ExecutesActualValveStep(int actualProcessedChannel)
        {
            //Arrange
            Mock <IValve> processedValveMock = GetProcessedValveMockAndSetupValveManager(actualProcessedChannel);
            //Act
            Task <bool> result = valveManager.Send();

            //Assert
            processedValveMock.Verify(m => m.ExecuteStep(), Times.Once);
        }