コード例 #1
0
        public void Check_ValidColumnTypes_ShouldReturnTrue(string query)
        {
            var middleware = new HasValidColumnTypes();

            var actual = middleware.Check(query);

            Assert.True(actual);
        }
コード例 #2
0
        public void Check_InvalidColumnTypes_ShouldThrowUnsupportedTypeException(string query)
        {
            var middleware = new HasValidColumnTypes();

            Assert.Throws <UnsupportedTypeException>(() => middleware.Check(query));
        }