public void Start_returnsActionStatusOkIfValveTypeExists(string valveTypeTxt, ActionStatus expectedActionStatus) { //Arrange valveManager.Initialize(4); //Act ActionStatus returnActionStatus = valveManager.Start(testSettings, valveTypeTxt); //Assert Assert.AreEqual(expectedActionStatus, returnActionStatus); }
public void Start_ValveTypeIsNull_ReturnsActionStatusError() { ActionStatus actionStatus = valveManager.Start(ServiceProvider.GetRequiredService <TestSettings>(), null); Assert.AreEqual(ActionStatus.Error, actionStatus); }