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(); }
public void CheckVariableByKey_CorrectName_ReturnVariable(string key, bool flag) { var variable = variableContext.CheckVariableByKey(key); variable.Should().Be(flag); }