示例#1
0
        public void WellFormatedLinkAnchorCommandNameWhitespaces()
        {
            string         s   = PWGraphCLI.GenerateLinkAnchorCommand("node 1", 1, "node 2", 4);
            PWGraphCommand cmd = PWGraphCLI.Parse(s);

            Assert.That(cmd.type == PWGraphCommandType.LinkAnchor);
            Assert.That(cmd.fromNodeName == "node 1");
            Assert.That(cmd.toNodeName == "node 2");
            Assert.That(cmd.fromAnchorIndex == 1);
            Assert.That(cmd.toAnchorIndex == 4);
        }