Exemple #1
0
        protected void WriteFilter <T>(T filter, byte[] etalon) where T : BaseFilter
        {
            var mem          = new MemoryStream();
            var writer       = new SwfStreamWriter(mem);
            var actionWriter = new FilterWriter();

            actionWriter.Write(writer, filter);
            var buffer = mem.ToArray();

            Assert.AreEqual(etalon, buffer);
        }