public void IsConnected_ConnectedCalled_usbChargerConnectedTrue() { _usbCharger.Connected.Returns(true); bool connected = _uut.IsConnected(); Assert.That(connected, Is.EqualTo(true)); }
public void IsConnected_Connected_IsTrue() { // Arrange // Act _mockUsbCharger.Connected.Returns(true); // Assert Assert.IsTrue(_uut.IsConnected()); }
public void IsConnected_MethodReturnsConnectedStatus_IsEqualToSimulatedConnected(bool Connected) { //act FakeCharger.Connected.Returns(Connected); uut.IsConnected(); //assert Assert.That(uut.IsConnected, Is.EqualTo(Connected)); }
public void IsConnected_RecivedFalse_ConnectedIsfalse() { //Arrange IDisplay disp = Substitute.For <IDisplay>(); IUsbCharger usb = Substitute.For <IUsbCharger>(); ChargeControl uut = new ChargeControl(disp, usb); usb.Connected.Returns(false); //ACT bool result = uut.IsConnected(); //Assert Assert.That(result, Is.False); }
public void IsConnected_USBCharger_IsConnectedTrue() { _charge.Connected.Returns(true); Assert.That(_uut.IsConnected(), Is.EqualTo(true)); }
public void TestIsConnected(bool state) { usbChargerMock.Connected = state; Assert.IsTrue(_uut.IsConnected() == state); }
public void ChargeControlIsConnected_USBChargerConnected_IsTrue() { _uut.IsConnected(); _usbCharger.Connected.Returns(true); }
public void ChargeControl_IsConnectedTrue() { stubUsb.Connected.Returns(true); Assert.That(chargeControl.IsConnected()); }
public void TestIsConnectedMethodTrue() { _usbCharger.Connected.Returns(true); Assert.That(_uut.IsConnected(), Is.True); }
public void IsConnectedReturnsValueOfUsbChargerConnected(bool connected) { _charger.Connected.Returns(connected); Assert.That(_uut.IsConnected(), Is.EqualTo(connected)); }
public void IsConnected_PhoneIsConnected_ReturnsTrue() { _usbCharger.Connected.Returns(true); Assert.IsTrue(_uut.IsConnected()); }