Exemplo n.º 1
0
        public void Set(Byte[] expected, EthernetFrameType input)
        {
            var ethernetFrame = new EthernetFrame
            {
                Bytes = new Byte[14]
            };

            ethernetFrame.Type = input;

            ethernetFrame.GetBytes(12, 2).ToArray().Should().Equal(expected);
            ethernetFrame.Type.Should().Be(input);
        }