示例#1
0
        public void Get_Bytes(byte displayClockDivideRatio, byte oscillatorFrequency, byte[] expectedBytes)
        {
            SetDisplayClockDivideRatioOscillatorFrequency setDisplayClockDivideRatioOscillatorFrequency =
                new SetDisplayClockDivideRatioOscillatorFrequency(displayClockDivideRatio, oscillatorFrequency);

            byte[] actualBytes = setDisplayClockDivideRatioOscillatorFrequency.GetBytes();
            Assert.Equal(expectedBytes, actualBytes);
        }
示例#2
0
        public void Get_Bytes_With_Default_Values()
        {
            SetDisplayClockDivideRatioOscillatorFrequency setDisplayClockDivideRatioOscillatorFrequency =
                new SetDisplayClockDivideRatioOscillatorFrequency();

            byte[] actualBytes = setDisplayClockDivideRatioOscillatorFrequency.GetBytes();
            Assert.Equal(new byte[] { 0xD5, 0x80 }, actualBytes);
        }