Esempio n. 1
0
        public void CreateEnvironmentAsLocal()
        {
            ValueEnvironment environment = new ValueEnvironment(ValueEnvironmentType.Local);

            Assert.AreEqual(ValueEnvironmentType.Local, environment.Type);
            Assert.IsNull(environment.GetNonLocalEnvironment());
        }
Esempio n. 2
0
        public void CreateAndSkipLocalEnvironment()
        {
            ValueEnvironment environment = new ValueEnvironment();
            ValueEnvironment local       = new ValueEnvironment(environment, ValueEnvironmentType.Local);

            Assert.AreEqual(ValueEnvironmentType.Normal, environment.Type);
            Assert.AreEqual(ValueEnvironmentType.Local, local.Type);

            Assert.AreEqual(environment, local.GetNonLocalEnvironment());
            Assert.AreEqual(environment, environment.GetNonLocalEnvironment());
        }