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