public void When_Primitive_DataTemplate() { var SUT = new Binding_Primitive_DataTemplate(); SUT.ForceLoaded(); var inner = SUT.root.FindName("inner") as TextBlock; Assert.AreEqual(string.Empty, inner.Text); SUT.root.Content = "hello!"; Assert.AreEqual("hello!", inner.Text); }
public void When_Primitive_DataTemplate() { var SUT = new Binding_Primitive_DataTemplate(); SUT.ForceLoaded(); var inner = SUT.root.FindName("inner") as Windows.UI.Xaml.Controls.TextBlock; Assert.IsNull(inner.Text); SUT.root.Content = "hello!"; Assert.AreEqual("hello!", inner.Text); }