Ejemplo n.º 1
0
        public void InnerNodeToBinaryTest()
        {
            InnerNode    node    = new InnerNode(44, 42);
            Stream       s       = File.OpenWrite(@"D:\MFF\ZS_2019\c#_repos\Huffman1\Huffman1Tests\bin\Debug\netcoreapp3.0\TestFiles\Huff2\Outs\TestFile.out");
            BinaryWriter writer  = new BinaryWriter(s);
            ulong        correct = 0x58;
            ulong        result  = node.NodeToBinary();

            writer.Write(result);
            Assert.AreEqual(correct, result);
            writer.Flush();
            writer.Close();
        }