Пример #1
0
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            Int64Filter filter = new Int64Filter();
            filter.Value = "9223372036854775808";

            Assert.Null(filter.GetNumericValue());
        }
Пример #2
0
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            Int64Filter filter = new Int64Filter();

            filter.Value = "9223372036854775808";

            Assert.Null(filter.GetNumericValue());
        }
Пример #3
0
        public void GetNumericValue_OnNotValidValueReturnsNull()
        {
            Int64Filter <GridModel> filter = new Int64Filter <GridModel>();

            filter.Value = "9223372036854775808";

            Assert.IsNull(filter.GetNumericValue());
        }
Пример #4
0
        public void GetNumericValue_ParsesValue()
        {
            Int64Filter filter = new Int64Filter();
            filter.Value = "-9223372036854775808";

            Object actual = filter.GetNumericValue();
            Int64 expected = -9223372036854775808;

            Assert.Equal(expected, actual);
        }
Пример #5
0
        public void GetNumericValue_ParsesValue()
        {
            Int64Filter filter = new Int64Filter();

            filter.Value = "-9223372036854775808";

            Object actual   = filter.GetNumericValue();
            Int64  expected = -9223372036854775808;

            Assert.Equal(expected, actual);
        }
Пример #6
0
        public void GetNumericValue_ParsesValue()
        {
            Int64Filter <GridModel> filter = new Int64Filter <GridModel>();

            filter.Value = "-9223372036854775808";

            Object actual   = filter.GetNumericValue();
            Object expected = -9223372036854775808;

            Assert.AreEqual(expected, actual);
        }