AnalyzerUnitTest.ConnectedComponentCalculatorTest.TestCalculateStronglyConnectedComponents4 C# (CSharp) Method

TestCalculateStronglyConnectedComponents4() private method

private TestCalculateStronglyConnectedComponents4 ( ) : void
return void
        TestCalculateStronglyConnectedComponents4()
        {
            // One component with two vertices.

            IVertex oVertex1 = m_oVertices.Add();
            IVertex oVertex2 = m_oVertices.Add();
            m_oEdges.Add(oVertex1, oVertex2);

            IList<LinkedList<IVertex>> oStronglyConnectedComponents =
                m_oConnectedComponentCalculator.
                CalculateStronglyConnectedComponents(m_oGraph, true);

            Assert.AreEqual(1, oStronglyConnectedComponents.Count);

            CheckThatComponentConsistsOfVertices(oStronglyConnectedComponents[0],
                oVertex1.ID, oVertex2.ID);
        }