Beispiel #1
0
        public static void DataType_PropertyGet_MatchesCtorArg()
        {
            const DataType dataType = DataType.Interval;
            var            attr     = new FakeDeclaredTypeAttribute(dataType);

            Assert.That(attr.DataType, Is.EqualTo(dataType));
        }
Beispiel #2
0
        public static void Length_GivenValidDataTypeAndLengthPropertyGet_MatchesCtorArg()
        {
            const DataType dataType = DataType.Interval;
            const int      length   = 10;
            var            attr     = new FakeDeclaredTypeAttribute(dataType, length, true);

            Assert.That(attr.Length, Is.EqualTo(length));
        }
Beispiel #3
0
        public static void Scale_GivenValidDataTypeAndLengthPropertyGet_MatchesCtorArg()
        {
            const DataType dataType  = DataType.Integer;
            const int      precision = 10;
            const int      scale     = 5;
            var            attr      = new FakeDeclaredTypeAttribute(dataType, precision, scale);

            Assert.That(attr.Scale, Is.EqualTo(scale));
        }