Skip to content

Commit

Permalink
Recover coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Nov 2, 2022
1 parent 8f19713 commit e18debb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MoreLinq.Test/ToDataTableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace MoreLinq.Test
using System.Collections.Generic;
using System.Data;
using System.Linq.Expressions;
using System.Text.RegularExpressions;
using NUnit.Framework;

[TestFixture]
Expand Down Expand Up @@ -115,6 +116,13 @@ public void ToDataTableMemberExpressionIndexer()
_testObjects.ToDataTable(t => t[0]));
}

[Test]
public void ToDataTableMemberExpressionStatic()
{
AssertThrowsArgument.Exception("lambda", () =>
_ = _testObjects.ToDataTable(_ => DateTime.Now));
}

[Test]
public void ToDataTableSchemaInDeclarationOrder()
{
Expand Down

0 comments on commit e18debb

Please sign in to comment.