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

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

            filter.Value = "3.2f";

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

            filter.Value = "3.2f";

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

            Object actual = filter.GetNumericValue();
            Single expected = -3.40281534f;

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

            filter.Value = "-3.40281540545454";

            Object actual   = filter.GetNumericValue();
            Single expected = -3.40281534f;

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

            filter.Value = "-3.40281540545454";

            Object actual   = filter.GetNumericValue();
            Object expected = -3.40281534f;

            Assert.AreEqual(expected, actual);
        }