public void SplitsValidAnnotationPatterns(string textAnnotation, string expectedType, string expectedValue) { var(actualType, actualValue) = SqlTypeValueAnnotationsSplitterAlgorithm.SplitTypeValueFromAnnotation(textAnnotation); Assert.Equal(expectedType, actualType); Assert.Equal(expectedValue, actualValue); }
public void ThrowsExceptionWithInvalidAnnotation(string textAnnotation) { void action() => SqlTypeValueAnnotationsSplitterAlgorithm.SplitTypeValueFromAnnotation(textAnnotation); Assert.Throws <SqlAnnotationSplitException>(action); }