public static IGattCharacteristicWrapper WithWriteValueWithResultAsync(
            this IGattCharacteristicWrapper characteristic,
            IGattWriteResultWrapper result)
        {
            _ = characteristic.WriteValueWithResultAsync(Arg.Any <IBuffer> ( ))
                .Returns(Task.FromResult(result));

            return(characteristic);
        }
        TryWriteWithoutResponseAsync_ForCharacteristicDoesNotWriteWithoutResponse_GattWriteResultNotSupported(
            RawValueWriter sut,
            [Freeze] IGattCharacteristicWrapper characteristic,
            IBuffer buffer,
            IGattWriteResultWrapper result)
        {
            characteristic.WithCharacteristicProperties(GattCharacteristicProperties.None)
            .WithWriteValueWithResultAsync(result);

            var actual = await sut.TryWriteWithoutResponseAsync(characteristic,
                                                                buffer);

            actual.Should( )
            .Be(GattWriteResultWrapper.NotSupported);
        }
        public async Task TryWriteWithoutResponseAsync_ForGattCommunicationStatusIsAccessDenied_False(
            RawValueWriter sut,
            [Freeze] IGattCharacteristicWrapper characteristic,
            IBuffer buffer,
            IGattWriteResultWrapper result)
        {
            characteristic.WithCharacteristicProperties(GattCharacteristicProperties.WriteWithoutResponse)
            .WithWriteValueWithResultAsync(result);

            var actual = await sut.TryWriteWithoutResponseAsync(characteristic,
                                                                buffer);

            actual.Should( )
            .Be(result);
        }