public void Dispose_ForInvoked_DisposesWrapper( Device sut, [Freeze] IBluetoothLeDeviceWrapper wrapper) { sut.Dispose(); wrapper.Received() .Dispose(); }
public void Connect_ForDisconnected_DoesCallConnect( Device sut, [Freeze] IBluetoothLeDeviceWrapper wrapper) { wrapper.ConnectionStatus .Returns(BluetoothConnectionStatus.Disconnected); sut.Connect(); wrapper.Received() .Connect(); }