Beispiel #1
0
        private void TestMessage(byte[] bytes, I2CRequestMessage message)
        {
            var creatore = new I2CRequestMessageCreator();
            var newBytes = creatore.CreateMessage(message);

            Assert.AreEqual(bytes, newBytes);
        }
        private void TestMessage(byte[] bytes, I2CRequestMessage message)
        {
            var creatore = new I2CRequestMessageCreator();
            var newBytes = creatore.CreateMessage(message);

            Assert.AreEqual(bytes,newBytes);
        }
 public override void Throws_Error_On_Wrong_Message()
 {
     var creator = new I2CRequestMessageCreator();
     Assert.Throws<MessageCreatorException>(() => creator.CreateMessage(new I2CConfigMessage()));
 }
Beispiel #4
0
        public override void Throws_Error_On_Wrong_Message()
        {
            var creator = new I2CRequestMessageCreator();

            Assert.Throws <MessageCreatorException>(() => creator.CreateMessage(new I2CConfigMessage()));
        }