Пример #1
0
        public static void CheckEquality(int length1, int length2, bool expected)
        {
            var type1 = new SqlArrayType(length1);
            var type2 = new SqlArrayType(length2);

            Assert.Equal(expected, type1.Equals(type2));
        }
Пример #2
0
        public static void ConstructArray(int length)
        {
            var type = new SqlArrayType(length);

            Assert.NotNull(type);
            Assert.Equal(length, type.Length);
        }
Пример #3
0
        public static void FormatString(int length, string expected)
        {
            var type = new SqlArrayType(length);

            Assert.NotNull(type);
            Assert.Equal(length, type.Length);
            Assert.Equal(expected, type.ToString());
        }