public void PacksContent() { var contentView = new ContentView(); var child = new View(); contentView.ControlTemplate = new ControlTemplate(typeof(SimpleTemplate)); contentView.Content = child; Assume.That(((IElementController)contentView).LogicalChildren[0], Is.TypeOf <SimpleTemplate> ()); Assert.That(contentView.Descendants(), Contains.Item(child)); }
public void PacksContent() { var platform = new UnitPlatform(); var contentView = new ContentView(); var child = new View(); contentView.ControlTemplate = new ControlTemplate(typeof(SimpleTemplate)); contentView.Content = child; contentView.Platform = platform; Assume.That(contentView.LogicalChildren[0], Is.TypeOf <SimpleTemplate> ()); Assert.That(contentView.Descendants(), Contains.Item(child)); }
public void PacksContent () { var platform = new UnitPlatform (); var contentView = new ContentView (); var child = new View (); contentView.ControlTemplate = new ControlTemplate (typeof (SimpleTemplate)); contentView.Content = child; contentView.Platform = platform; Assume.That (contentView.LogicalChildren[0], Is.TypeOf<SimpleTemplate> ()); Assert.That (contentView.Descendants (), Contains.Item (child)); }