Beispiel #1
0
 public void Setup()
 {
     _mockInteriorObject = new Mock <IWriter>();
     _lsg        = new LSG();
     _output     = new StringBuilder();
     _xmlBuilder = XmlWriter.Create(_output, new XmlWriterSettings {
         ConformanceLevel = ConformanceLevel.Fragment
     });
 }
Beispiel #2
0
            int FindHavlakLoops(CFG cfg)
            {
                var lsg = new LSG();

                return(FindHavlakLoops(cfg, lsg));
            }
Beispiel #3
0
            int FindHavlakLoops(CFG cfg, LSG lsg)
            {
                var h = new HavlakLoopFinder(cfg, lsg);

                return(h.FindLoops());
            }
Beispiel #4
0
 public HavlakLoopFinder(CFG cfg, LSG lsg)
 {
     this.cfg = cfg;
     this.lsg = lsg;
 }
 public LoopTesterApp()
 {
     cfg  = new CFG();
     lsg  = new LSG();
     root = cfg.createNode(0);
 }
Beispiel #6
0
 int FindHavlakLoops(CFG cfg)
 {
     var lsg = new LSG();
     return FindHavlakLoops(cfg, lsg);
 }
Beispiel #7
0
 int FindHavlakLoops(CFG cfg, LSG lsg)
 {
     var h = new HavlakLoopFinder(cfg, lsg);
     return h.FindLoops();
 }
Beispiel #8
0
 public HavlakLoopFinder(CFG cfg, LSG lsg)
 {
     this.cfg = cfg;
     this.lsg = lsg;
 }