public void WriteUInt16_Sequence() { using (var f = new GenericFile()) { f.CreateFile(new byte[4]); f.WriteUInt16(42); f.WriteUInt16(UInt16.MaxValue); Assert.IsTrue((new byte[] { 42, 00, 255, 255 }).SequenceEqual(f.Read())); } }