private static void AssertSingleSucceded(DaxFormatterResponse response, string expectedExpression) { Assert.NotNull(response); Assert.NotEmpty(response.Formatted); Assert.Empty(response.Errors); var actualExpression = response.Formatted; Assert.Equal(expectedExpression, actualExpression); }
private static void AssertSingleFails(DaxFormatterResponse response, int expectedErrorLine, int expectedErrorColumn) { Assert.NotNull(response); Assert.Empty(response.Formatted); Assert.Single(response.Errors); var actualError = response.Errors.Single(); Assert.Equal(expectedErrorLine, actualError.Line); Assert.Equal(expectedErrorColumn, actualError.Column); }