public void GetNumericValue_NotValidValue_ReturnsNull() { Int32Filter filter = new Int32Filter(); filter.Value = "1a"; Assert.Null(filter.GetNumericValue()); }
public void GetNumericValue_OnNotValidValueReturnsNull() { Int32Filter <GridModel> filter = new Int32Filter <GridModel>(); filter.Value = "1a"; Assert.IsNull(filter.GetNumericValue()); }
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 <GridModel> filter = new Int32Filter <GridModel>(); filter.Value = "-2147483648"; Object actual = filter.GetNumericValue(); Object expected = -2147483648; Assert.AreEqual(expected, actual); }