public void It_should_throw_an_exception_when_the_range_does_not_specify_the_same_column() { _DataTable.Rows.Add("Value-1", "Value-2"); var exception = Assert.Throws <ArgumentException>(() => MinMaxAggregation.Max <int>(_DataTable, "A1:B1")); Assert.AreEqual("The specified aggregation can only be performed on a single column.", exception.Message); }
public void It_should_throw_an_exception_when_the_table_parameter_is_null_for_a_range() { var exception = Assert.Throws <ArgumentNullException>(() => MinMaxAggregation.Max <int>(null, "A1:A3")); Assert.AreEqual($"Value cannot be null. (Parameter 'table')", exception.Message); }
public void It_should_throw_an_exception_when_the_data_row_groupings_parameter_is_null() { var exception = Assert.Throws <ArgumentNullException>(() => MinMaxAggregation.Max <int>(null, ((0, 0), (0, 0)))); Assert.AreEqual($"Value cannot be null. (Parameter 'table')", exception.Message); }