public void RunSelfTest_TestIsOK_ReturnTrue() { _tempSensor.RunSelfTest().Returns(true); _heater.RunSelfTest().Returns(true); _window.RunSelfTest().Returns(true); Assert.IsTrue(_uut.RunSelfTest()); }
public void RunSelfTest_Success_SelftestApproved() { _heater.RunSelfTest().Returns(true); _sensor.RunSelfTest().Returns(true); _window.RunSelfTest().Returns(true); Assert.IsTrue(_uut.RunSelfTest()); }
public void Test_RunSelfTest_2false_false() { _uut = new ECSClass(25, 35, _fakeTempSensor, _fakeHeater, _fakeWindow); _fakeHeater.RunSelfTest().Returns(false); _fakeTempSensor.RunSelfTest().Returns(false); Assert.IsFalse(_uut.RunSelfTest()); }
public void RunSelfTest_SelfTestReturnsTrue() { // Act _tempSensor.RunSelfTest().Returns(true); _heater.RunSelfTest().Returns(true); Assert.IsTrue(_uut.RunSelfTest()); // Assert }
public void RunSelfTest_StubsSetToXandY_ExpectZ(bool X, bool Y, bool Z) { uut = new ECS(tempSensor, heater, 10); tempSensor.RunSelfTest().Returns(X); heater.RunSelfTest().Returns(Y); Assert.That(uut.RunSelfTest, Is.EqualTo(Z)); }
public void SelfTest_CallMethodSelfTest_ResultIsTrue() { bool test; test = uut.RunSelfTest(); Assert.That(test, Is.True); }
public bool RunSelfTest() { return (_tempSensor.RunSelfTest() && _heater.RunSelfTest() && _window.RunSelfTest()); }
public void RunSelfTest_StubsReturnsAllBoolValues_ReturnsCorrectBool(bool heaterBool, bool sensorBool, bool result) { _heater.RunSelfTest().Returns(heaterBool); _tempSensor.RunSelfTest().Returns(sensorBool); // work is done in setup bool selfTestResult = uut.RunSelfTest(); Assert.That(selfTestResult, Is.EqualTo(result)); }
public void RunSelftest_AllSubtestsPass_ReturnsTrue( bool TempTest, bool HeaterTest, bool WindowTest, bool ExpectedResult) { _fakeTempSensor.RunSelfTest().Returns(TempTest); _fakeHeater.RunSelfTest().Returns(HeaterTest); _fakeWindow.RunSelfTest().Returns(WindowTest); Assert.That(_uut.RunSelfTest(), Is.EqualTo(ExpectedResult)); }
public void RunSelfTest_StubsSetToXandY_ExpectZ(bool X, bool Y, bool Z) { //Arrange _fakeHeater.RunSelfTest().Returns(X); _fakeTempSensor.RunSelfTest().Returns(Y); //Act bool result = uut.RunSelfTest(); //Assert Assert.That(result, Is.EqualTo(Z)); }
public void RunSelfTest_HeaterFails_SelfTestFails(int a) { //arrange uut2 = Substitute.For <IHeater>(); uut1 = Substitute.For <ITempSensor>(); uut3 = new global::ECS.Legacy.ECS(a, uut2, uut1); //act uut1.RunSelfTest().Returns(true); uut2.RunSelfTest().Returns(true); //uut3.Regulate(); //assert Assert.IsTrue(uut3.RunSelfTest()); }
public void RunSelfTest_HeaterSensor_Res(bool hSelftest, bool tSSelfTest, bool res) { _fakeHeater.RunSelfTest().Returns(hSelftest); _fakeTempSensor.RunSelfTest().Returns(tSSelfTest); Assert.That(_uut.RunSelfTest() == res); }
public bool RunSelfTest() { return(_tempSensor.RunSelfTest() && _heater.RunSelfTest() && _Window.RunSelfTest()); } // Lavet ændring
public void RunSelfTest_retuns_true() { uutTempSensor.RunSelfTest().Returns(true); uutHeater.RunSelfTest().Returns(true); Assert.That(uut.RunSelfTest, Is.True); }
public void tempSensorFailedTest() { tempSensor_.RunSelfTest().Returns(false); heater_.RunSelfTest().Returns(true); Assert.IsFalse(ecs_.RunSelfTest()); }
public void RunSelfTest_ReturnsFalse() { temp.RunSelfTest().Returns(false); heater.RunSelfTest().Returns(true); Assert.IsFalse(uut.RunSelfTest()); }
public bool RunSelfTest() { return(_heater.RunSelfTest() & _tempSensor.RunSelfTest()); }
public void RunSelfTest_Test(bool hReturn, bool tReturn, bool Result) { _fakeTempSensor.RunSelfTest().Returns(tReturn); _fakeHeater.RunSelfTest().Returns(hReturn); Assert.That(_uut.RunSelfTest(), Is.EqualTo(Result)); }
public bool RunSelfTest(ITempSensor tempSensor, IHeater heater) { return(tempSensor.RunSelfTest() && heater.RunSelfTest()); }
public void SelfTest_CallMethodSelfTest_ResultIsTrue() { uut.RunSelfTest(); Assert.IsTrue(uut.RunSelfTest()); }
public void HeaterRunSelfTestReturnsTrue() { Assert.IsTrue(_heater.RunSelfTest()); }
public bool RunSelfTest() => _tempSensor.RunSelfTest() && _heater.RunSelfTest();
public void RunSelfTest_SelfTestFails_TempOrHeaterIsFalse(bool temp, bool heater) { _tempSensor.RunSelfTest().Returns(temp); _heater.RunSelfTest().Returns(heater); Assert.IsFalse(_uut.RunSelfTest()); }
public void RunSelfTest_HeaterBoolSensorBool_ResultCorrect(bool heaterState, bool sensorState, bool expectedResult) { heater.RunSelfTest().Returns(heaterState); sensor.RunSelfTest().Returns(sensorState); Assert.That(uut.RunSelfTest, Is.EqualTo(expectedResult)); }
public void RunSelfTest_TempSensorFails_SelfTestFails() { _tempSensor.RunSelfTest().Returns(false); _heater.RunSelfTest().Returns(true); Assert.IsFalse(_uut.RunSelfTest()); }
public void RunSelfTest() { _tempsensor.RunSelfTest().Returns(false); _heater.RunSelfTest().Returns(true); Assert.IsFalse(_uut.RunSelfTest()); }