Exemplo n.º 1
0
        private void MatrixShiftEncode(object sender, RoutedEventArgs e)
        {
            MatrixShift algorithm = new MatrixShift();
            string      value     = MatrixShiftEncodeInput.Text;

            MatrixShiftEncodeOutput.Text = algorithm.Encrypt(value);
        }
        public void MatrixShiftEncode(string input, string output)
        {
            var result = matrixShift.Encrypt(input);

            Assert.AreEqual(output, result);
        }