public void CheckVariableEndsWith_InCorrectEquals_ReturnException()
        {
            var variable = new Variable()
            {
                Type = typeof(string), Value = "test"
            };

            variableController.Variables.TryAdd("test", variable);
            VariableSteps steps = new VariableSteps(variableController);

            Action act = () => steps.CheckVariableEndsWith("test", "123");

            act.Should().Throw <Exception>()
            .Which.Message.Contains($"Значение переменной \"test\":\"test\" не заканчивается с \"123\"");
        }
        public void CheckVariableEndsWith_InCorrectExpected_ReturnException()
        {
            var variable = new Variable()
            {
                Type = typeof(string), Value = "test"
            };

            variableController.Variables.TryAdd("test", variable);
            VariableSteps steps = new VariableSteps(variableController);

            Action act = () => steps.CheckVariableEndsWith("test", null);

            act.Should().Throw <Exception>()
            .Which.Message.Contains($"Значение \"expected\" не задано.");
        }