Exemple #1
0
 public void SetByteで値を設定してgetByteで取得する()
 {
     //setUp
     var sut = new MyPacket();
     const byte expected = (byte) 0xfd;
     sut.SetByte(expected, 20);
     //exercise
     var actual = sut.GetByte(20,1);
     //verify
     Assert.That(actual, Is.EqualTo(expected));
 }
Exemple #2
0
        public void SetByteで値を設定してgetByteで取得する()
        {
            //setUp
            var        sut      = new MyPacket();
            const byte expected = (byte)0xfd;

            sut.SetByte(expected, 20);
            //exercise
            var actual = sut.GetByte(20, 1);

            //verify
            Assert.That(actual, Is.EqualTo(expected));
        }