Ejemplo n.º 1
0
        public void ShouldResetParentContainerWithNull()
        {
            GridEntryContainerMock container = new GridEntryContainerMock();

            GridEntryContainer.SetParentContainer(container, container);
            Assert.AreEqual(container, GridEntryContainer.GetParentContainer(container));

            GridEntryContainer.SetParentContainer(container, null);
            Assert.IsNull(GridEntryContainer.GetParentContainer(container));
        }
Ejemplo n.º 2
0
 public void ShouldFailSettingParentContainerForNull()
 {
     GridEntryContainer.SetParentContainer(null, new GridEntryContainerMock());
 }