Esempio n. 1
0
        public async Task ReceivedTmpValue()
        {
            unchecked {
                int expected = (int)0xdeadbeef;
                var task     = debug.ReadTmpValueAsync();

                platform.sendMockResponse(new byte[] { 0xfe, 0x84, 0xef, 0xbe, 0xad, 0xde });
                Assert.That(await task, Is.EqualTo(expected));
            }
        }