Skip to content

Commit 42afa53

Browse files
committed
chore: update public API snapshots for collection count assertions
Add verified snapshots for HasAtLeast, HasAtMost, and HasCountBetween assertion methods added to the collection assertions API.
1 parent ed8b1b3 commit 42afa53

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.DotNet8_0.verified.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ namespace .Collections
483483
public static . CheckDoesNotContainPredicate<TItem>(.<TItem> adapter, <TItem, bool> predicate) { }
484484
public static . CheckDoesNotContainValue<TKey, TValue>(.<TKey, TValue> adapter, TValue value, .<TValue>? comparer = null) { }
485485
public static . CheckDoesNotOverlap<TItem>(.<TItem> adapter, .<TItem> other) { }
486+
public static . CheckHasAtLeast<TItem>(.<TItem> adapter, int minCount) { }
487+
public static . CheckHasAtMost<TItem>(.<TItem> adapter, int maxCount) { }
488+
public static . CheckHasCountBetween<TItem>(.<TItem> adapter, int min, int max) { }
486489
public static . CheckHasDistinctItems<TItem>(.<TItem> adapter, .<TItem>? comparer = null) { }
487490
public static . CheckHasSingleItem<TItem>(.<TItem> adapter) { }
488491
public static . CheckHasSingleItemPredicate<TItem>(.<TItem> adapter, <TItem, bool> predicate, out TItem? matchingItem) { }
@@ -621,12 +624,30 @@ namespace .Conditions
621624
protected override . CheckMaterialized(.<TItem> items) { }
622625
protected override string GetExpectation() { }
623626
}
627+
public class AsyncEnumerableHasAtLeastAssertion<TItem> : .<TItem>
628+
{
629+
public AsyncEnumerableHasAtLeastAssertion(.<.<TItem>> context, int minCount) { }
630+
protected override . CheckMaterialized(.<TItem> items) { }
631+
protected override string GetExpectation() { }
632+
}
633+
public class AsyncEnumerableHasAtMostAssertion<TItem> : .<TItem>
634+
{
635+
public AsyncEnumerableHasAtMostAssertion(.<.<TItem>> context, int maxCount) { }
636+
protected override . CheckMaterialized(.<TItem> items) { }
637+
protected override string GetExpectation() { }
638+
}
624639
public class AsyncEnumerableHasCountAssertion<TItem> : .<TItem>
625640
{
626641
public AsyncEnumerableHasCountAssertion(.<.<TItem>> context, int expected) { }
627642
protected override . CheckMaterialized(.<TItem> items) { }
628643
protected override string GetExpectation() { }
629644
}
645+
public class AsyncEnumerableHasCountBetweenAssertion<TItem> : .<TItem>
646+
{
647+
public AsyncEnumerableHasCountBetweenAssertion(.<.<TItem>> context, int min, int max) { }
648+
protected override . CheckMaterialized(.<TItem> items) { }
649+
protected override string GetExpectation() { }
650+
}
630651
public class AsyncEnumerableIsEmptyAssertion<TItem> : .<TItem>
631652
{
632653
public AsyncEnumerableIsEmptyAssertion(.<.<TItem>> context, bool expectEmpty) { }
@@ -811,6 +832,27 @@ namespace .Conditions
811832
protected override .<.> CheckAsync(.<TCollection> metadata) { }
812833
protected override string GetExpectation() { }
813834
}
835+
public class CollectionHasAtLeastAssertion<TCollection, TItem> : .<TCollection, TItem>
836+
where TCollection : .<TItem>
837+
{
838+
public CollectionHasAtLeastAssertion(.<TCollection> context, int minCount) { }
839+
protected override .<.> CheckAsync(.<TCollection> metadata) { }
840+
protected override string GetExpectation() { }
841+
}
842+
public class CollectionHasAtMostAssertion<TCollection, TItem> : .<TCollection, TItem>
843+
where TCollection : .<TItem>
844+
{
845+
public CollectionHasAtMostAssertion(.<TCollection> context, int maxCount) { }
846+
protected override .<.> CheckAsync(.<TCollection> metadata) { }
847+
protected override string GetExpectation() { }
848+
}
849+
public class CollectionHasCountBetweenAssertion<TCollection, TItem> : .<TCollection, TItem>
850+
where TCollection : .<TItem>
851+
{
852+
public CollectionHasCountBetweenAssertion(.<TCollection> context, int min, int max) { }
853+
protected override .<.> CheckAsync(.<TCollection> metadata) { }
854+
protected override string GetExpectation() { }
855+
}
814856
public class CollectionIsEmptyAssertion<TCollection, TItem> : .<TCollection, TItem>
815857
where TCollection : .<TItem>
816858
{
@@ -5567,7 +5609,10 @@ namespace .Sources
55675609
public .<TItem> Contains(TItem expected, .<TItem>? comparer = null, [.("expected")] string? expression = null) { }
55685610
public .<TItem> DoesNotContain(TItem expected, .<TItem>? comparer = null, [.("expected")] string? expression = null) { }
55695611
protected override string GetExpectation() { }
5612+
public .<TItem> HasAtLeast(int minCount, [.("minCount")] string? expression = null) { }
5613+
public .<TItem> HasAtMost(int maxCount, [.("maxCount")] string? expression = null) { }
55705614
public .<TItem> HasCount(int expected, [.("expected")] string? expression = null) { }
5615+
public .<TItem> HasCountBetween(int min, int max, [.("min")] string? minExpression = null, [.("max")] string? maxExpression = null) { }
55715616
public .<TExpected, .<TItem>> IsAssignableTo<TExpected>() { }
55725617
public .<TItem> IsEmpty() { }
55735618
public .<TExpected, .<TItem>> IsNotAssignableTo<TExpected>() { }
@@ -5618,11 +5663,14 @@ namespace .Sources
56185663
public .<TCollection, TItem> DoesNotContain(<TItem, bool> predicate, [.("predicate")] string? expression = null) { }
56195664
public .<TCollection, TItem> DoesNotContain(TItem expected, [.("expected")] string? expression = null) { }
56205665
protected override string GetExpectation() { }
5666+
public .<TCollection, TItem> HasAtLeast(int minCount, [.("minCount")] string? expression = null) { }
5667+
public .<TCollection, TItem> HasAtMost(int maxCount, [.("maxCount")] string? expression = null) { }
56215668
[("Use Count() instead, which provides all numeric assertion methods. Example: Asser" +
56225669
"(list).Count().IsGreaterThan(5)")]
56235670
public ..CountWrapper<TCollection, TItem> HasCount() { }
56245671
[("Use Count().IsEqualTo(expectedCount) instead.")]
56255672
public .<TCollection, TItem> HasCount(int expectedCount, [.("expectedCount")] string? expression = null) { }
5673+
public .<TCollection, TItem> HasCountBetween(int min, int max, [.("min")] string? minExpression = null, [.("max")] string? maxExpression = null) { }
56265674
public .<TCollection, TItem> HasDistinctItems() { }
56275675
public .<TCollection, TItem> HasSingleItem() { }
56285676
public .<TCollection, TItem> HasSingleItem(<TItem, bool> predicate, [.("predicate")] string? expression = null) { }

0 commit comments

Comments
 (0)