Esempio n. 1
0
        public void ScopedCustomVariable_Constructor_Sets_Properties()
        {
            var customVariable           = new CustomVariable("name3", "value3");
            var scopedCustomVariableSlot = new ScopedCustomVariableSlot(CustomVariableScope.Session, customVariable, 3);

            Assert.AreEqual(CustomVariableScope.Session, scopedCustomVariableSlot.Scope);
            Assert.AreEqual(3, scopedCustomVariableSlot.Slot);
            Assert.AreEqual(customVariable, scopedCustomVariableSlot.Variable);
        }
Esempio n. 2
0
 public void CustomVariable_Constructor_Throws_ArgumentOutOfRange_If_Enum_Undefined()
 {
     var scoped = new ScopedCustomVariableSlot((CustomVariableScope)421, new CustomVariable("t", "k"), 9);
 }