Esempio n. 1
0
        public void Prdet_BuildCluster()
        {
            Given_Edge(1, 2);
            Given_Edge(1, 3);
            Given_Edge(2, 4);
            Given_Edge(3, 4);
            Given_KnownProcedures();

            var prdet    = new ProcedureDetector(this.program, this.sr, this.listener);
            var clusters = prdet.FindClusters();

            Assert.AreEqual(1, clusters.Count);
            var sExp =
                #region Expected
                @"  00000001
      00000002 00000003
  00000002
      00000004
  00000003
      00000004
  00000004
";

            #endregion
            AssertCluster(sExp, clusters[0]);
        }
Esempio n. 2
0
 private void Given_ProcedureDetector()
 {
     this.prdet = new ProcedureDetector(this.program, this.sr, this.listener);
 }