Skip to content

Commit 83c1cd9

Browse files
committed
tests: add tests for MustBeValidEmail for Span<T> and Memory<T>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
1 parent da4d18a commit 83c1cd9

File tree

3 files changed

+630
-30
lines changed

3 files changed

+630
-30
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#nullable enable
2+
using System;
3+
4+
namespace Light.GuardClauses.Tests;
5+
6+
public delegate void ExecuteReadOnlySpanAssertion<T>(
7+
ReadOnlySpan<T> span,
8+
ReadOnlySpanExceptionFactory<T> exceptionFactory
9+
);
10+
11+
public delegate void ExecuteSpanAssertion<T>(
12+
Span<T> span,
13+
ReadOnlySpanExceptionFactory<T> exceptionFactory
14+
);
15+
16+
public delegate void ExecuteReadOnlySpanAssertion<TItem, TValue>(
17+
ReadOnlySpan<TItem> span,
18+
TValue additionalValue,
19+
ReadOnlySpanExceptionFactory<TItem, TValue> exceptionFactory
20+
);
21+
22+
public delegate void ExecuteSpanAssertion<TItem, TValue>(
23+
Span<TItem> span,
24+
TValue additionalValue,
25+
ReadOnlySpanExceptionFactory<TItem, TValue> exceptionFactory
26+
);

0 commit comments

Comments
 (0)