public void GetVariable_CorrectName_ReturnVariable(string key, Type type, string value) { var variable = variableContext.GetVariable(key); variable.Type.Should().Be(type); variable.Value.Should().Be(value); }
public void EmtpyVariable_CorrectVariable_ReturnEmptyVariable() { var variable = new Variable() { Type = typeof(string), Value = string.Empty }; variableController.Variables.TryAdd("test", variable); VariableSteps steps = new VariableSteps(variableController); steps.EmtpyVariable("test"); var variableCheck = variableController.GetVariable("test"); variableCheck.Type.Should().Be(typeof(object)); variableCheck.Value.Should().BeNull(); }