예제 #1
0
        public void TestHostCheckCommand1()
        {
            string expected = File.ReadAllText("HostCheckCommand1.xml");

            var command = new HostCheck(
                new List <string>()
            {
                "ns1.example.com",
                "ns2.example.com",
                "ns3.example.com"
            }
                );

            command.TransactionId = "ABC-12345";

            Assert.AreEqual(expected, command.ToXml().InnerXml);
        }
예제 #2
0
        public void TestHostCheckCommand1()
        {
            string expected = File.ReadAllText("HostCheckCommand1.xml");

            var command = new HostCheck(
                    new List<string>()
                    {
                        "ns1.example.com",
                        "ns2.example.com",
                        "ns3.example.com"
                    }
            );
            command.TransactionId = "ABC-12345";

            Assert.AreEqual(expected, command.ToXml().InnerXml);
        }