public void TestProcessXorConst()
        {
            var r = ProcessXorConst.FromFile(SourceFile("process_xor_1.bin"));

            Assert.AreEqual(r.Key, 255);
            Assert.AreEqual(r.Buf, new byte[] { 102, 111, 111, 32, 98, 97, 114 });
        }
Ejemplo n.º 2
0
        public void TestProcessXorConst()
        {
            ProcessXorConst r = ProcessXorConst.FromFile(SourceFile("process_xor_1.bin"));

            Assert.AreEqual(r.Key, 0xff);
            Assert.AreEqual(System.Text.Encoding.UTF8.GetString(r.Buf), "foo bar");
        }