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)); }
public void ShouldFailSettingParentContainerForNull() { GridEntryContainer.SetParentContainer(null, new GridEntryContainerMock()); }