Exemplo n.º 1
0
        public void SplitsValidAnnotationPatterns(string textAnnotation, string expectedType, string expectedValue)
        {
            var(actualType, actualValue) = SqlTypeValueAnnotationsSplitterAlgorithm.SplitTypeValueFromAnnotation(textAnnotation);

            Assert.Equal(expectedType, actualType);
            Assert.Equal(expectedValue, actualValue);
        }
Exemplo n.º 2
0
        public void ThrowsExceptionWithInvalidAnnotation(string textAnnotation)
        {
            void action() => SqlTypeValueAnnotationsSplitterAlgorithm.SplitTypeValueFromAnnotation(textAnnotation);

            Assert.Throws <SqlAnnotationSplitException>(action);
        }