public void TestTranslation() { PropertyKeeper src = new PropertyKeeper(); PropertyKeeper dest = new PropertyKeeper(); src.Value = "Good Morning"; Abstractions.TranslationServices <NUnitAdapter> srvc = new Abstractions.TranslationServices <NUnitAdapter>(); srvc.DoTranslation(src, dest); Assert.AreEqual("Guten Morgen", dest.Value); }
public void DoTranslation() { Form parent; TextBox othertextbox; parent = this.Parent as Form; othertextbox = parent.Controls["textbox2"] as TextBox; Abstractions.TranslationServices <TranslationTextBox> srvc = new Abstractions.TranslationServices <TranslationTextBox>(); srvc.DoTranslation(this, othertextbox); }