public void It_should_throw_an_exception_when_the_table_parameter_is_null() { var exception = Assert.Throws <ArgumentNullException>(() => ValueExtensions.GetValue(null, "A1")); Assert.AreEqual($"Value cannot be null. (Parameter 'table')", exception.Message); }