Пример #1
0
        public void DeleteVariable_CorrectVariable_ReturnFalse()
        {
            var variable = new Variable()
            {
                Type = typeof(string), Value = string.Empty
            };

            variableController.Variables.TryAdd("test", variable);

            VariableSteps steps = new VariableSteps(variableController);

            steps.DeleteVariable("test");

            var check = variableController.CheckVariableByKey("test");

            check.Should().BeFalse();
        }
Пример #2
0
        public void CheckVariableByKey_CorrectName_ReturnVariable(string key, bool flag)
        {
            var variable = variableContext.CheckVariableByKey(key);

            variable.Should().Be(flag);
        }