public void Test_ProfileCell_IsEmpty() { ProfileCell cell = new ProfileCell(); Assert.True(cell.IsEmpty(), "Cell not empty after construction"); cell.AddLayer(new FilteredMultiplePassInfo(new[] { new FilteredPassData() })); Assert.False(cell.IsEmpty(), "Cell empty after addition of a layer"); cell.ClearLayers(); Assert.True(cell.IsEmpty(), "Cell layers not empty after clear layers"); }
public void Test_ProfileCell_ClearLayers() { ProfileCell cell = new ProfileCell(); cell.AddLayer(new FilteredMultiplePassInfo(new[] { new FilteredPassData() })); cell.ClearLayers(); Assert.True(cell.IsEmpty(), "Cell layers not empty after clear layers"); }