Skip to content

Commit

Permalink
Added assertions type DataTableCollectionAssertions.cs with assertion…
Browse files Browse the repository at this point in the history
…s specific to DataTableCollection. Updated AssertionExtensions.cs with an overload of Should() that matches DataTableCollection.

Added assertions type DataColumnCollectionAssertions.cs with assertions specific to DataColumnCollection. Updated AssertionExtensions.cs with an overload of Should() that matches DataColumnCollection.
Added assertions type DataRowCollectionAssertions.cs with assertions specific to DataRowCollection. Updated AssertionExtensions.cs with an overload of Should() that matches DataRowCollection.
Reran AcceptApiChanges.ps1 to update the approved API surface.
Added automated tests of DataTableCollectionAssertions in new class Collections/Data/DataTableCollectionAssertionSpecs.cs in FluentAssertions.Specs.
Added automated tests of DataColumnCollectionAssertions in new class Collections/Data/DataColumnCollectionAssertionSpecs.cs in FluentAssertions.Specs.
Added automated tests of DataRowCollectionAssertions in new class Collections/Data/DataRowCollectionAssertionSpecs.cs in FluentAssertions.Specs.
Added documentation of the new methods to docs/_pages/data.md.
Added a corresponding line to the release notes in docs/_pages/releases.md.
  • Loading branch information
logiclrd committed Feb 16, 2022
1 parent 8450e98 commit 9f478c6
Show file tree
Hide file tree
Showing 14 changed files with 5,717 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Src/FluentAssertions/AssertionExtensions.cs
Expand Up @@ -384,6 +384,36 @@ public static StringCollectionAssertions Should(this IEnumerable<string> @this)
return new GenericDictionaryAssertions<TCollection, TKey, TValue>(actualValue);
}

/// <summary>
/// Returns a <see cref="DataTableCollectionAssertions"/> objcet that can be used to assert the
/// current <see cref="DataTableCollection"/>.
/// </summary>
[Pure]
public static DataTableCollectionAssertions Should(this DataTableCollection actualValue)
{
return new DataTableCollectionAssertions(actualValue);
}

/// <summary>
/// Returns a <see cref="DataColumnCollectionAssertions"/> objcet that can be used to assert the
/// current <see cref="DataColumnCollection"/>.
/// </summary>
[Pure]
public static DataColumnCollectionAssertions Should(this DataColumnCollection actualValue)
{
return new DataColumnCollectionAssertions(actualValue);
}

/// <summary>
/// Returns a <see cref="DataRowCollectionAssertions"/> objcet that can be used to assert the
/// current <see cref="DataRowCollection"/>.
/// </summary>
[Pure]
public static DataRowCollectionAssertions Should(this DataRowCollection actualValue)
{
return new DataRowCollectionAssertions(actualValue);
}

/// <summary>
/// Returns a <see cref="DataColumnAssertions"/> object that can be used to assert the
/// current <see cref="DataColumn"/>.
Expand Down
659 changes: 659 additions & 0 deletions Src/FluentAssertions/Data/DataColumnCollectionAssertions.cs

Large diffs are not rendered by default.

1,128 changes: 1,128 additions & 0 deletions Src/FluentAssertions/Data/DataRowCollectionAssertions.cs

Large diffs are not rendered by default.

693 changes: 693 additions & 0 deletions Src/FluentAssertions/Data/DataTableCollectionAssertions.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9f478c6

Please sign in to comment.