Beispiel #1
0
        public void GetNumericValue_OnNotValidValueReturnsNull()
        {
            ByteFilter filter = new ByteFilter();
            filter.Value = "-1";

            Assert.Null(filter.GetNumericValue());
        }
Beispiel #2
0
        public void GetNumericValue_NotValidValue_ReturnsNull()
        {
            ByteFilter filter = new ByteFilter();

            filter.Value = "-1";

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

            filter.Value = "-1";

            Assert.IsNull(filter.GetNumericValue());
        }
Beispiel #4
0
        public void GetNumericValue_ParsesValue()
        {
            ByteFilter filter = new ByteFilter();
            filter.Value = "255";

            Object actual = filter.GetNumericValue();
            Byte expected = 255;

            Assert.Equal(expected, actual);
        }
Beispiel #5
0
        public void GetNumericValue_ParsesValue()
        {
            ByteFilter filter = new ByteFilter();

            filter.Value = "255";

            Object actual   = filter.GetNumericValue();
            Byte   expected = 255;

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

            filter.Value = "255";

            Object actual   = filter.GetNumericValue();
            Object expected = 255;

            Assert.AreEqual(expected, actual);
        }