public void Test_SubGrid_AllChangesMigrated() { ISubGrid leafSubgrid = null; SubGridTree tree = new SubGridTree(SubGridTreeConsts.SubGridTreeLevels, 1.0, new SubGridFactory <NodeSubGrid, LeafSubGrid>()); leafSubgrid = new SubGrid(tree, null, SubGridTreeConsts.SubGridTreeLevels); Assert.False(leafSubgrid.Dirty, "Leaf is Dirty after creation"); leafSubgrid.SetDirty(); Assert.True(leafSubgrid.Dirty, "Leaf is not Dirty after setting Dirty to true"); leafSubgrid.AllChangesMigrated(); Assert.False(leafSubgrid.Dirty, "Leaf is Dirty after AllChangesMigrated"); }