예제 #1
0
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            SByteFilter filter = new SByteFilter();
            filter.Value = "128";

            Assert.Null(filter.GetNumericValue());
        }
예제 #2
0
        public void GetNumericValue_OnNotValidValueReturnsNull()
        {
            SByteFilter filter = new SByteFilter();

            filter.Value = "128";

            Assert.Null(filter.GetNumericValue());
        }
예제 #3
0
        public void GetNumericValue_ParsesValue()
        {
            SByteFilter filter = new SByteFilter();
            filter.Value = "-128";

            Object actual = filter.GetNumericValue();
            SByte expected = -128;

            Assert.Equal(expected, actual);
        }
예제 #4
0
        public void GetNumericValue_ParsesValue()
        {
            SByteFilter filter = new SByteFilter();

            filter.Value = "-128";

            Object actual   = filter.GetNumericValue();
            SByte  expected = -128;

            Assert.Equal(expected, actual);
        }
예제 #5
0
        public void GetNumericValue_ParsesValue()
        {
            SByteFilter <GridModel> filter = new SByteFilter <GridModel>();

            filter.Value = "-128";

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

            Assert.AreEqual(expected, actual);
        }