Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added interface IHasUnderlyingCollection<TCollection> to expose the U…
…nderlyingCollection property of ReadOnlyNonGenericCollectionWrapper<TCollection, TItem>. Updated the ReadOnlyNonGenericCollectionWrapper<TCollection, TItem> type to implement IHasUnderlyingCollection<TCollection>. Updated DataColumnCollectionAssertionExtensions.cs to access UnderlyingCollection via IHasUnderlyingCollection instead of the concrete type ReadOnlyNonGenericCollectionWrapper. Updated the exposed API surface files correspondingly.
- Loading branch information
Showing
9 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections; | ||
|
||
namespace FluentAssertions.Common | ||
{ | ||
/// <summary> | ||
/// Used to provide access to the underlying <typeparamref name="TCollection"/> for an object that wraps an underlying | ||
/// collection. | ||
/// </summary> | ||
/// <typeparam name="TCollection">Collection type.</typeparam> | ||
public interface IHasUnderlyingCollection<TCollection> | ||
where TCollection : ICollection | ||
{ | ||
TCollection UnderlyingCollection { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters