예제 #1
0
        public void Dispose_ForInvoked_DisposesWrapper(
            Device sut,
            [Freeze] IBluetoothLeDeviceWrapper wrapper)
        {
            sut.Dispose();

            wrapper.Received()
            .Dispose();
        }
예제 #2
0
        public void Connect_ForDisconnected_DoesCallConnect(
            Device sut,
            [Freeze] IBluetoothLeDeviceWrapper wrapper)
        {
            wrapper.ConnectionStatus
            .Returns(BluetoothConnectionStatus.Disconnected);

            sut.Connect();

            wrapper.Received()
            .Connect();
        }