private void VizhinerButton_OnClick(object sender, RoutedEventArgs e) => SafeAction(() => { var replacement = new VizhinerReplacement(ReplacementKeyTextBox.Text); ReplacementOutputTextBlock.Text = replacement.Process(ReplacementInputTextBox.Text); });
private static void BaseVizhinerTest(string text, string expected, string key) { var replacement = new VizhinerReplacement(key); Assert.AreEqual(expected, replacement.Process(text)); }