Parse() public method

public Parse ( string args ) : int
args string
return int
Beispiel #1
0
 public void CompleteTheSubring() {
   SubringParameters p = new SubringParameters();
   string[] args = "-b=.2 --dtls -c --secure_edges -s=25 --subring=10".Split(' ');
   Assert.AreNotEqual(-1, p.Parse(args), "Unable to parse" + p.ErrorMessage);;
   SubringSimulator sim = new SubringSimulator(p);
   Assert.IsTrue(sim.Complete(true), "Simulation failed to complete the ring");
 }
Beispiel #2
0
        public void CompleteTheSubring()
        {
            SubringParameters p = new SubringParameters();

            string[] args = "-b=.2 -c --secure_edges -s=25 --subring=10".Split(' ');
            Assert.AreNotEqual(-1, p.Parse(args), "Unable to parse" + p.ErrorMessage);
            SubringSimulator sim = new SubringSimulator(p);

            _sim = sim;
            Assert.IsTrue(sim.Complete(true), "Simulation failed to complete the ring");
        }