Ejemplo n.º 1
0
        public void WellFormatedLinkAnchorNameCommandNameWhitespaces()
        {
            string         s   = PWGraphCLI.GenerateLinkAnchorNameCommand("node 1", "a1", "node 2", "a2");
            PWGraphCommand cmd = PWGraphCLI.Parse(s);

            Assert.That(cmd.type == PWGraphCommandType.LinkAnchorName);
            Assert.That(cmd.fromNodeName == "node 1");
            Assert.That(cmd.toNodeName == "node 2");
            Assert.That(cmd.fromAnchorFieldName == "a1");
            Assert.That(cmd.toAnchorFieldName == "a2");
        }