Exemplo n.º 1
0
        public void TestWrite()
        {
            FtCblsSubRecord record = new FtCblsSubRecord();

            Assert.AreEqual(FtCblsSubRecord.sid, record.Sid);
            Assert.AreEqual(data.Length, record.DataSize);

            byte[] ser = record.Serialize();
            Assert.AreEqual(ser.Length - 4, data.Length);
        }
Exemplo n.º 2
0
        public void TestClone()
        {
            FtCblsSubRecord record = new FtCblsSubRecord();

            byte[] src = record.Serialize();

            FtCblsSubRecord Cloned = (FtCblsSubRecord)record.Clone();

            byte[] cln = Cloned.Serialize();

            Assert.AreEqual(record.DataSize, Cloned.DataSize);
            Assert.IsTrue(Arrays.Equals(src, cln));
        }