示例#1
0
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            Int32Filter filter = new Int32Filter();
            filter.Value = "1a";

            Assert.Null(filter.GetNumericValue());
        }
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            Int32Filter filter = new Int32Filter();

            filter.Value = "1a";

            Assert.Null(filter.GetNumericValue());
        }
示例#3
0
        public void GetNumericValue_OnNotValidValueReturnsNull()
        {
            Int32Filter <GridModel> filter = new Int32Filter <GridModel>();

            filter.Value = "1a";

            Assert.IsNull(filter.GetNumericValue());
        }
示例#4
0
        public void GetNumericValue_ParsesValue()
        {
            Int32Filter filter = new Int32Filter();
            filter.Value = "-2147483648";

            Object actual = filter.GetNumericValue();
            Int32 expected = -2147483648;

            Assert.Equal(expected, actual);
        }
        public void GetNumericValue_ParsesValue()
        {
            Int32Filter filter = new Int32Filter();

            filter.Value = "-2147483648";

            Object actual   = filter.GetNumericValue();
            Int32  expected = -2147483648;

            Assert.Equal(expected, actual);
        }
示例#6
0
        public void GetNumericValue_ParsesValue()
        {
            Int32Filter <GridModel> filter = new Int32Filter <GridModel>();

            filter.Value = "-2147483648";

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

            Assert.AreEqual(expected, actual);
        }