Example #1
0
        public void when_there_are_conversion_errors_a_head_of_time()
        {
            values.LogError("a", "don't like you");

            afterExecuting();

            theLineGrammar.AssertWasNotCalled(x => x.Execute(values, context));

            var result = context.Results.Single().ShouldBeOfType <StepResult>();

            result.id.ShouldBe(values.id);
            result.status.ShouldBe(ResultStatus.ok);
            result.cells.ShouldHaveTheSameElementsAs(new[]
            {
                new CellResult("a", ResultStatus.error)
                {
                    error = "don't like you"
                }
            });
        }