public byte[] Should_the_memory_be_set_to_the_correct_values(int channel, UInt16 value)
        {
            using (var memory = new ManagedMemory(COMMAND_SIZE)) {
                var device = new Tlc59711Device(memory);

                device.Channels.Set(channel, value);
                return(memory
                       .Skip(4 + (channel * PWM_WORDSIZE))
                       .Take(2)
                       .ToArray());
            }
        }
        public string Should_the_resulting_memory_be_correct(string description, Action <ITlc59711Settings> action)
        {
            using (var memory = new ManagedMemory(COMMAND_SIZE)) {
                var device = new Tlc59711Device(memory);
                action(device);

                Console.WriteLine("Running action on: {0}", description);
                return(memory
                       .Take(4)
                       .ToBitString());
            }
        }