예제 #1
0
        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");
        }
예제 #2
0
        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");
        }