Пример #1
0
        private void MatrixShiftDecode(object sender, RoutedEventArgs e)
        {
            MatrixShift algorithm = new MatrixShift();
            string      value     = MatrixShiftDecodeInput.Text;

            MatrixShiftDecodeOutput.Text = algorithm.Decrypt(value);
        }
        public void MatrixShiftDecode(string input, string output)
        {
            var result = matrixShift.Decrypt(input);

            Assert.AreEqual(output, result);
        }