Пример #1
0
        public void Read2Test()
        {
            var mem       = new MemoryStream(_etalon2);
            var tagReader = new SwfTagDeserializer(new SwfFile());
            var tagData   = new SwfTagData {
                Type = SwfTagType.DefineShape,
                Data = mem.ToArray()
            };
            var res = tagReader.ReadTag <DefineShapeTag>(tagData);

            AssertTag.AreEqual(GetDefineShapeTag2(), res);
        }
Пример #2
0
        public void ReadTest()
        {
            var mem       = new MemoryStream(_etalon);
            var tagReader = new SwfTagDeserializer(new SwfFile());
            var tagData   = new SwfTagData {
                Type = SwfTagType.Metadata,
                Data = mem.ToArray()
            };
            var res = tagReader.ReadTag <MetadataTag>(tagData);

            Assert.IsNotNull(res);
            AssertTag.AreEqual(GetMetadataTag(), res);
        }
Пример #3
0
        public void ParseTest()
        {
            var tag = ParseTagFromResource("ControlTags.DefineSceneAndFrameLabelDataTag.xml");

            AssertTag.AreEqual(GetDefineSceneAndFrameLabelDataTag(), tag, "DefineSceneAndFrameLabelDataTag");
        }