public void DialedEndpoint_Escaping() { var endpoint = new DialedEndpoint("extensions/1000"); endpoint.Variables["list"] = "one,two"; Assert.AreEqual("[list=^^:one:two]extensions/1000", endpoint.ToString()); }
public void DialedEndpoint_Basic() { var endpoint = new DialedEndpoint("extensions/1000"); Assert.AreEqual("extensions/1000", endpoint.ToString()); endpoint.Variables["foo"] = "bar"; Assert.AreEqual("[foo=bar]extensions/1000", endpoint.ToString()); endpoint.Variables["Hello"] = "World"; Assert.AreEqual("[foo=bar,Hello=World]extensions/1000", endpoint.ToString()); }