示例#1
0
        public void TestProcessXor4Value()
        {
            var r = ProcessXor4Value.FromFile(SourceFile("process_xor_4.bin"));

            Assert.AreEqual(r.Key, new byte[] { 236, 187, 163, 20 });
            Assert.AreEqual(r.Buf, new byte[] { 102, 111, 111, 32, 98, 97, 114 });
        }
        public void TestProcessXor4Value()
        {
            ProcessXor4Value r = ProcessXor4Value.FromFile(SourceFile("process_xor_4.bin"));

            CollectionAssert.AreEqual(r.Key, new byte[] { 0xec, 0xbb, 0xa3, 0x14 });
            Assert.AreEqual(System.Text.Encoding.UTF8.GetString(r.Buf), "foo bar");
        }