Пример #1
0
        private void VizhinerButton_OnClick(object sender, RoutedEventArgs e) => SafeAction(() =>
        {
            var replacement = new VizhinerReplacement(ReplacementKeyTextBox.Text);

            ReplacementOutputTextBlock.Text = replacement.Process(ReplacementInputTextBox.Text);
        });
Пример #2
0
        private static void BaseVizhinerTest(string text, string expected, string key)
        {
            var replacement = new VizhinerReplacement(key);

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