Esempio n. 1
0
        private void VizhinerButton_OnClick(object sender, RoutedEventArgs e) => SafeAction(() =>
        {
            var replacement = new VizhinerReplacement(ReplacementKeyTextBox.Text);

            ReplacementOutputTextBlock.Text = replacement.Process(ReplacementInputTextBox.Text);
        });
Esempio n. 2
0
        private static void BaseVizhinerTest(string text, string expected, string key)
        {
            var replacement = new VizhinerReplacement(key);

            Assert.AreEqual(expected, replacement.Process(text));
        }