コード例 #1
0
        public void RemoveColumnTest()
        {
            Column testColumn = new Column(new Point(2, 3));

            instance.AddColumn(testColumn);
            instance.RemoveColumn(testColumn);

            Assert.AreEqual(0, instance.GetColumns().Count);
        }
コード例 #2
0
        public void RemoveColumnTest()
        {
            Point columnPosition = new Point(2, 2);

            instance.InsertColumn(columnPosition);
            instance.RemoveColumn(columnPosition);
            int expectedResult = 0;
            int actualResult   = materials.GetColumns().Count;

            Assert.AreEqual(expectedResult, actualResult);
        }
コード例 #3
0
        public void InsertColumnCorrectly()
        {
            BlueprintEditor blueEditor  = GetInstance();
            Point           columnPoint = new Point(1, 1);

            blueEditor.InsertColumn(columnPoint);
            int expectedResult = 1;
            int actualResult   = materials.GetColumns().Count;

            Assert.AreEqual(expectedResult, actualResult);
        }