Closed tidusjar closed 5 years ago
Thanks for spotting and fixing this. I have a question though. Are you sure this test is passing? Because after replacing it the order by
should be lowercased, at least according to the code.
Ok it turns out I was misusing Fluent Assertions. Should().BeEquivelentTo()
is doing case insensitive checks.
That sucks. I need to change all the string comparisons to Should().Be()
that actually checks the case too. That's why this test is passing even though it should fail.
Could you place change every Should().BeEquivelentTo()
check in this test class to be Should().Be()
instead please?
Very good point, I have changed the expected to match what the code actually now does, and changed the assertions for that class.
Thank you very much for this. Merged.
Fix the issue where we currently require the raw sql to have the
order by
in lowercase.I could do a
.ToLower()
/.ToUpper()
and that would also fix the issue, but that seems a bit more 'hacky'