Пример #1
0
 public void OrderBy_NullSource_ThrowsArgumentNullException()
 {
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.OrderBy <DataRow, string>(null, row => "abc"));
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.OrderBy <DataRow, string>(null, row => "abc", StringComparer.CurrentCulture));
 }
 public void Where_NullSource_ThrowsArgumentNullException()
 {
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.Where <DataRow>(null, row => true));
 }
Пример #3
0
 public void AsEnumerable_NullSource_ThrowsArgumentNullException()
 {
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.AsEnumerable <DataRow>(null));
 }
 public void Select_NullSource_ThrowsArgumentNullException()
 {
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.Select <DataRow, string>(null, row => "abc"));
 }