public void ValidationPasses()
        {
            TestSigner signer = new TestSigner();

            byte[]        data      = new byte[] { 10, 22, 5, 0, 200 };
            byte[]        signature = signer.MakeSignature(data);
            TestValidator validator = new TestValidator();

            Assert.IsTrue(validator.IsValid(data, signature), "Did not validate");
        }
        public void SignatureChangeBreaks()
        {
            TestSigner signer = new TestSigner();

            byte[]        data      = new byte[] { 10, 22, 5, 0, 200 };
            byte[]        signature = signer.MakeSignature(data);
            TestValidator validator = new TestValidator();

            signature[1] = (byte)(255 - signature[1]);
            Assert.IsFalse(validator.IsValid(data, signature), "Should not validate");
        }