Exemplo n.º 1
0
        public void TestGetServersByAE()
        {
            Initialize1();

            var all = ServerDirectory.GetRemoteServers();

            Assert.AreEqual(2, all.Count);

            var ae1 = ServerDirectory.GetRemoteServersByAETitle("AE1");

            Assert.AreEqual(1, ae1.Count);
            var ae2 = ServerDirectory.GetRemoteServersByAETitle("AE2");

            Assert.AreEqual(1, ae2.Count);
            Assert.AreEqual(0, ServerDirectory.GetRemoteServersByAETitle(null).Count);
            Assert.AreEqual(0, ServerDirectory.GetRemoteServersByAETitle(String.Empty).Count);
            Assert.AreEqual(0, ServerDirectory.GetRemoteServersByAETitle("abc").Count);
        }