Ejemplo n.º 1
0
        public void T_GetFirstNode()
        {
            // Arrange
            Cell cell  = new Cell();
            Cell cell2 = new Cell();

            cell.Value  = '1';
            cell2.Value = '1';
            GraphNode graphNodeBgn = new GraphNode(cell);
            GraphNode graphNodeEnd = new GraphNode(cell2);
            GraphArc  graphArc     = new GraphArc(graphNodeBgn, graphNodeEnd);

            // Act
            GraphNode getFirstNode = graphArc.GetFirstNode();

            // Assert
            Assert.AreEqual(getFirstNode, graphNodeBgn);
        }