Ejemplo n.º 1
0
        public void TestGetCurrentEnvironment()
        {
            JobManager manager = new JobManager(_env);

            string expectedString = "Local";
            string resultString = null;
            resultString = manager.GetCurrentEnvironment();
            Assert.AreEqual(expectedString, resultString, "GetCurrentEnvironment method returned unexpected result.");

            manager.Proxy = null;
            expectedString = null;
            resultString = manager.GetCurrentEnvironment();
            Assert.AreEqual(expectedString, resultString, "GetEnvironmentList method returned unexpected result.");
        }