public void BMD2BFTest() { using (Node a = NodeFactory.FromFile(resPath + "e801.bf").TransformWith <BF2Container>()) { foreach (var child in a.Children) { child.Stream.WriteTo(resPath + Path.GetFileNameWithoutExtension(a.Name) + "/" + a.Name + "." + child.Name); } foreach (var child in a.Children) { if (File.Exists(resPath + Path.GetFileNameWithoutExtension(a.Name) + "/" + a.Name + "." + child.Name)) { child.ChangeFormat(new BinaryFormat(new DataStream(resPath + Path.GetFileNameWithoutExtension(a.Name) + "/" + a.Name + "." + child.Name, FileOpenMode.Read))); } } a.TransformWith <Container2BF>().Stream.WriteTo(resPath + a.Name + ".test"); //Container2BF necesario para seguir con el test } using (DataStream a = NodeFactory.FromFile(resPath + "e801.bf.test").Stream) { using (DataStream b = NodeFactory.FromFile(resPath + "e801.bf.test2").Stream) { Assert.IsTrue(a.Compare(b)); } } }