public void RepeatingKeyXor_NullByteKey_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => Challenge5.RepeatingKeyXor(null, new byte[0]));
 }
 public void RepeatingKeyXor_NullSource_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => Challenge5.RepeatingKeyXor("key", null));
 }
 public void RepeatingKeyXor_NullKey_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => Challenge5.RepeatingKeyXor(null, "source"));
 }
        public void RepeatingKeyXor_ValidData_ValidResult()
        {
            var result = Challenge5.RepeatingKeyXor(Challenge5Data.Key, Challenge5Data.DecryptedValue);

            Assert.Equal(Challenge5Data.EncryptedHexValue, result);
        }