Exemple #1
0
        public void ServerArrayIndexSimple()
        {
            List <ServerArray> serverarrayList = ServerArray.index();

            Assert.IsNotNull(serverarrayList);
            Assert.IsTrue(serverarrayList.Count > 0);
        }
Exemple #2
0
        public void ServerArrayIndexFilteredString()
        {
            List <Filter> filter = Filter.parseFilterList(filterListString);

            List <ServerArray> serverarrayList = ServerArray.index(filter);

            Assert.IsNotNull(serverarrayList);
        }
Exemple #3
0
        //this is just a cleanup method--leaving it in place so that if/when I need to clean out a bunch of extra arrays from my acct it's here.
        //[TestMethod]
        public void cleanOutOldServerArrays()
        {
            int i = 0;
            List <ServerArray> serverArrays = ServerArray.index();

            foreach (ServerArray sa in serverArrays)
            {
                if (sa.name.Contains("API Testing ST"))
                {
                    if (ServerArray.destroy(sa.ID))
                    {
                        i++;
                    }
                    else
                    {
                    }
                }
            }
            Assert.IsTrue(i > 0);
        }