Exemple #1
0
        public void GetSelectionOutputTest(SelectionObjectType selectionObjectType, SelectionType selectinType, string expectedResult)
        {
            selection = new SelectionConcrete(selectinType, selectionObjectType, "testMessage", "testPrefix");

            var result = selection.GetOutputPortName();

            Assert.AreEqual(expectedResult, result);
        }
Exemple #2
0
        public void GetSelectionOutputTest()
        {
            //Case ObjectType: Edge
            selection = new SelectionConcrete(SelectionType.One, SelectionObjectType.Edge, "testMessage", "testPrefix");
            var expectedResult = "Curve";
            var result         = selection.GetOutputPortName();

            Assert.AreEqual(expectedResult, result);

            selection      = new SelectionConcrete(SelectionType.Many, SelectionObjectType.Edge, "testMessage", "testPrefix");
            expectedResult = "Curves";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            //Case ObjectType: Face
            selection      = new SelectionConcrete(SelectionType.One, SelectionObjectType.Face, "testMessage", "testPrefix");
            expectedResult = "Surface";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            selection      = new SelectionConcrete(SelectionType.Many, SelectionObjectType.Face, "testMessage", "testPrefix");
            expectedResult = "Surfaces";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            //Case ObjectType: PointOnFace
            selection      = new SelectionConcrete(SelectionType.One, SelectionObjectType.PointOnFace, "testMessage", "testPrefix");
            expectedResult = "Point";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            selection      = new SelectionConcrete(SelectionType.Many, SelectionObjectType.PointOnFace, "testMessage", "testPrefix");
            expectedResult = "Points";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            //Case ObjectType: None
            selection      = new SelectionConcrete(SelectionType.One, SelectionObjectType.None, "testMessage", "testPrefix");
            expectedResult = "Element";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);

            selection      = new SelectionConcrete(SelectionType.Many, SelectionObjectType.None, "testMessage", "testPrefix");
            expectedResult = "Elements";
            result         = selection.GetOutputPortName();
            Assert.AreEqual(expectedResult, result);
        }