public void TestFillFields()
        {
            EscherBlipWMFRecord r = new EscherBlipWMFRecord();
            r.FillFields(data, 0, new DefaultEscherRecordFactory());

            Assert.AreEqual(EscherBlipWMFRecord.RECORD_ID_START, r.RecordId);
            Assert.AreEqual(1, r.BoundaryLeft);
            Assert.AreEqual(2, r.BoundaryHeight);
            Assert.AreEqual(3, r.BoundaryTop);
            Assert.AreEqual(4, r.BoundaryWidth);
            Assert.AreEqual(5, r.CacheOfSavedSize);
            Assert.AreEqual(6, r.CacheOfSize);
            Assert.AreEqual(7, r.Filter);
            Assert.AreEqual(8, r.CompressionFlag);
            Assert.AreEqual("[01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, ]", HexDump.ToHex(r.SecondaryUID));
            Assert.AreEqual(10, r.Width);
            Assert.AreEqual(11, r.Height);
            Assert.AreEqual((short)5420, r.Options);
            Assert.AreEqual("[01, 02, ]", HexDump.ToHex(r.Data));
        }
        public void TestToString()
        {
            EscherBlipWMFRecord r = new EscherBlipWMFRecord();
            r.FillFields(data, 0, new DefaultEscherRecordFactory());

            String nl = Environment.NewLine;

            Assert.AreEqual("EscherBlipWMFRecord:" + nl +
                    "  RecordId: 0xF018" + nl +
                    "  Version: 0x000C" + nl +
                    "  Instance: 0x0152" + nl +
                    "  Secondary UID: [01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, ]" + nl +
                    "  CacheOfSize: 6" + nl +
                    "  BoundaryTop: 3" + nl +
                    "  BoundaryLeft: 1" + nl +
                    "  BoundaryWidth: 4" + nl +
                    "  BoundaryHeight: 2" + nl +
                    "  X: 10" + nl +
                    "  Y: 11" + nl +
                    "  CacheOfSavedSize: 5" + nl +
                    "  CompressionFlag: 8" + nl +
                    "  Filter: 7" + nl +
                    "  Data:" + nl +
                    "00000000 01 02                                           .." + nl
                    , r.ToString());
        }