Exemplo n.º 1
0
        public void Shall_stringify_header()
        {
            var header = new CallIdHeader
            {
                Number = "1",
                Host   = "foo.bar.com"
            };

            Assert.That(header.ToString(), Is.EqualTo("*****@*****.**"));
        }
Exemplo n.º 2
0
        public void Shall_clone_header()
        {
            CallIdHeader original = CallIdHeader.Parse("*****@*****.**");
            CallIdHeader cloned   = original.DeepClone();

            original.Number = "2";
            original.Host   = "qwerty.dvorak.com";

            Assert.That(cloned.ToString(), Is.EqualTo("*****@*****.**"));
            Assert.That(original.ToString(), Is.EqualTo("*****@*****.**"));
        }