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.Min <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.Min <int>(null, "A1:A3")); Assert.AreEqual($"Value cannot be null. (Parameter 'table')", exception.Message); }