public void WidgetToTarget() { MultiText text = new MultiText(); WeSayTextBox widget = new WeSayTextBox(WritingSystemDefinition.Parse("qaa-x-qaa"), null); var binding = new TextBinding(text, "vernacular", widget); widget.Text = "aaa"; widget.Dispose(); //this is hard to test now, because the biding only fires when focus is lost or the target ui control goes away Assert.AreEqual("aaa", text["vernacular"]); }
public void WidgetToTarget() { MultiText text = new MultiText(); WeSayTextBox widget = new WeSayTextBox(new WritingSystem("vernacular", new Font("Arial", 12)), null); var binding = new TextBinding(text, "vernacular", widget); widget.Text = "aaa"; widget.Dispose();//this is hard to test now, because the biding only fires when focus is lost or the target ui control goes away Assert.AreEqual("aaa", text["vernacular"]); }