예제 #1
0
 public void SetShortで値を設定してgetShortで取得する()
 {
     //setUp
     var sut = new MyPacket();
     //short expected = (short) 0xff01;
     const ushort expected = 0x1f01;
     sut.SetUShort(expected, 20);
     //exercise
     var actual = sut.GetUShort(20);
     //verify
     Assert.That(actual, Is.EqualTo(expected));
 }
예제 #2
0
        public void SetShortで値を設定してgetShortで取得する()
        {
            //setUp
            var sut = new MyPacket();
            //short expected = (short) 0xff01;
            const ushort expected = 0x1f01;

            sut.SetUShort(expected, 20);
            //exercise
            var actual = sut.GetUShort(20);

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