Ejemplo n.º 1
0
        public void ShouldAssignDataContextWithProvidedItem()
        {
            CategoryContainer container = new CategoryContainer();
              GridEntry item = new GridEntryMock();

              new CategoryItemsLayoutMock().CallPrepareContainerForItemOverride(container, item);

              Assert.AreEqual(item, container.DataContext);
        }
Ejemplo n.º 2
0
        public void ShouldAssignBindingWithProvidedItem()
        {
            CategoryContainer container = new CategoryContainer();
              GridEntry item = new GridEntryMock();

              new CategoryItemsLayoutMock().CallPrepareContainerForItemOverride(container, item);

              var expression = container.GetBindingExpression(GridEntryContainer.EntryProperty);
              Assert.IsNotNull(expression);
        }
Ejemplo n.º 3
0
 public void ShouldAssignItselfAsParentContainer()
 {
     CategoryContainer container = new CategoryContainer();
       Assert.AreEqual(container, CategoryContainer.GetParentContainer(container));
 }