public void GetNumericValue_NotValidValue_ReturnsNull() { Int64Filter filter = new Int64Filter(); filter.Value = "9223372036854775808"; Assert.Null(filter.GetNumericValue()); }
public void GetNumericValue_OnNotValidValueReturnsNull() { Int64Filter <GridModel> filter = new Int64Filter <GridModel>(); filter.Value = "9223372036854775808"; Assert.IsNull(filter.GetNumericValue()); }
public void GetNumericValue_ParsesValue() { Int64Filter filter = new Int64Filter(); filter.Value = "-9223372036854775808"; Object actual = filter.GetNumericValue(); Int64 expected = -9223372036854775808; Assert.Equal(expected, actual); }
public void GetNumericValue_ParsesValue() { Int64Filter <GridModel> filter = new Int64Filter <GridModel>(); filter.Value = "-9223372036854775808"; Object actual = filter.GetNumericValue(); Object expected = -9223372036854775808; Assert.AreEqual(expected, actual); }