Пример #1
0
        public void DigMXRecord()
        {
            Dig             dig     = new Dig();
            List <RecordMX> records = dig.GetMXRecord("godaddy.com");

            Assert.IsNotNull(records);
            Assert.IsTrue(records.Count > 0);
            Debug.WriteLine(records[0].EXCHANGE);
            Assert.IsTrue(records[0].EXCHANGE.Contains("outlook"));
        }
Пример #2
0
        public void DigMXRecord()
        {
            Dig             dig     = new Dig();
            List <MXRecord> records = dig.GetMXRecord("TOMHACK.COM");

            Assert.IsNotNull(records);
            Assert.IsTrue(records.Count > 0);
            Debug.WriteLine(records[0].ToString());
            Assert.IsTrue(records[0].ToString().Contains("secureserver"));
        }