public void TestIsReleassEnvironment()
 {
     EnvironmentTool.SetEnviroment("Release");
     Assert.IsFalse(EnvironmentTool.IsTestEnvironment);
     Assert.IsFalse(EnvironmentTool.IsDevelopmentEnvironment);
     Assert.IsTrue(EnvironmentTool.IsReleassEnvironment);
 }
        public void TestSetEnviroment(string environment)
        {
            EnvironmentTool.SetEnviroment(environment);
            var e = Environment.GetEnvironmentVariable("DOTNETCORE_ENVIRONMENT");

            Assert.AreEqual(environment, e);
        }
Beispiel #3
0
 public static void ClassInitialize(TestContext context)
 {
     EnvironmentTool.SetEnviroment("Test");
 }