Skip to content

Commit 6792bcd

Browse files
committed
Removed some IEquatable<T> constraints. Added Func overloads to Invoking.
1 parent ee49406 commit 6792bcd

File tree

53 files changed

+1370
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1370
-27
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ActionAssertions.NotThrow Method
2+
## Definition
3+
4+
```c#
5+
public void NotThrow();
6+
```
7+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ActionAssertions.Throw Method
2+
## Definition
3+
4+
```c#
5+
public ActionAssertionsChain<TException> Throw<TException>()
6+
where TException : Exception;
7+
```
8+
9+
### Type Parameters
10+
11+
| Name | Description |
12+
| ---- | ----------- |
13+
| TException | |
14+
15+
## Returns
16+
17+
[ActionAssertionsChain&lt;TException&gt;](MrKWatkins.Assertions.ActionAssertionsChain-1.md)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ActionAssertions Class
2+
## Definition
3+
4+
```c#
5+
public sealed class ActionAssertions
6+
```
7+
8+
## Methods
9+
10+
| Name | Description |
11+
| ---- | ----------- |
12+
| [NotThrow()](MrKWatkins.Assertions.ActionAssertions.NotThrow.md) | |
13+
| [Throw&lt;TException&gt;()](MrKWatkins.Assertions.ActionAssertions.Throw.md) | |
14+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ActionAssertionsChain&lt;TException&gt;.Exception Property
2+
## Definition
3+
4+
```c#
5+
public TException Exception { get; }
6+
```
7+
8+
## Property Value
9+
10+
TException
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ActionAssertionsChain&lt;TException&gt;.That Property
2+
## Definition
3+
4+
```c#
5+
public TException That { get; }
6+
```
7+
8+
## Property Value
9+
10+
TException
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# ActionAssertionsChain&lt;TException&gt; Struct
2+
## Definition
3+
4+
```c#
5+
public sealed struct ActionAssertionsChain<TException>
6+
where TException : Exception
7+
```
8+
9+
### Type Parameters
10+
11+
| Name | Description |
12+
| ---- | ----------- |
13+
| TException | |
14+
15+
## Properties
16+
17+
| Name | Description |
18+
| ---- | ----------- |
19+
| [Exception](MrKWatkins.Assertions.ActionAssertionsChain-1.Exception.md) | |
20+
| [That](MrKWatkins.Assertions.ActionAssertionsChain-1.That.md) | |
21+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# AssertThat.Invoking Method
2+
## Overloads
3+
4+
| Name | Description |
5+
| ---- | ----------- |
6+
| [Invoking(Action)](MrKWatkins.Assertions.AssertThat.Invoking.md#mrkwatkins-assertions-assertthat-invoking(system-action)) | |
7+
| [Invoking&lt;TResult&gt;(Func&lt;TResult&gt;)](MrKWatkins.Assertions.AssertThat.Invoking.md#mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))) | |
8+
9+
## Invoking(Action) {id="mrkwatkins-assertions-assertthat-invoking(system-action)"}
10+
11+
```c#
12+
public static Action Invoking(Action action);
13+
```
14+
15+
## Parameters {id="parameters-mrkwatkins-assertions-assertthat-invoking(system-action)"}
16+
17+
| Name | Type | Description |
18+
| ---- | ---- | ----------- |
19+
| action | [Action](https://learn.microsoft.com/en-gb/dotnet/api/System.Action) | |
20+
21+
## Returns {id="returns-mrkwatkins-assertions-assertthat-invoking(system-action)"}
22+
23+
[Action](https://learn.microsoft.com/en-gb/dotnet/api/System.Action)
24+
## Invoking&lt;TResult&gt;(Func&lt;TResult&gt;) {id="mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))"}
25+
26+
```c#
27+
public static Action Invoking<TResult>(Func<TResult> action);
28+
```
29+
30+
### Type Parameters {id="type-parameters-mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))"}
31+
32+
| Name | Description |
33+
| ---- | ----------- |
34+
| TResult | |
35+
36+
## Parameters {id="parameters-mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))"}
37+
38+
| Name | Type | Description |
39+
| ---- | ---- | ----------- |
40+
| action | [Func&lt;TResult&gt;](https://learn.microsoft.com/en-gb/dotnet/api/System.Func-1) | |
41+
42+
## Returns {id="returns-mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))"}
43+
44+
[Action](https://learn.microsoft.com/en-gb/dotnet/api/System.Action)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AssertThat Class
2+
## Definition
3+
4+
```c#
5+
public static class AssertThat
6+
```
7+
8+
## Methods
9+
10+
| Name | Description |
11+
| ---- | ----------- |
12+
| [Invoking(Action)](MrKWatkins.Assertions.AssertThat.Invoking.md#mrkwatkins-assertions-assertthat-invoking(system-action)) | |
13+
| [Invoking&lt;TResult&gt;(Func&lt;TResult&gt;)](MrKWatkins.Assertions.AssertThat.Invoking.md#mrkwatkins-assertions-assertthat-invoking-1(system-func((-0)))) | |
14+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EqualityExtensions.Equal Method
2+
## Definition
3+
4+
```c#
5+
public static ObjectAssertionsChain<T> Equal<T>(this ObjectAssertions<T> assertions, T? expected);
6+
```
7+
8+
### Type Parameters
9+
10+
| Name | Description |
11+
| ---- | ----------- |
12+
| T | |
13+
14+
## Parameters
15+
16+
| Name | Type | Description |
17+
| ---- | ---- | ----------- |
18+
| assertions | [ObjectAssertions&lt;T&gt;](MrKWatkins.Assertions.ObjectAssertions-1.md) | |
19+
| expected | T | |
20+
21+
## Returns
22+
23+
[ObjectAssertionsChain&lt;T&gt;](MrKWatkins.Assertions.ObjectAssertionsChain-1.md)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EqualityExtensions.NotEqual Method
2+
## Definition
3+
4+
```c#
5+
public static ObjectAssertionsChain<T> NotEqual<T>(this ObjectAssertions<T> assertions, T? expected);
6+
```
7+
8+
### Type Parameters
9+
10+
| Name | Description |
11+
| ---- | ----------- |
12+
| T | |
13+
14+
## Parameters
15+
16+
| Name | Type | Description |
17+
| ---- | ---- | ----------- |
18+
| assertions | [ObjectAssertions&lt;T&gt;](MrKWatkins.Assertions.ObjectAssertions-1.md) | |
19+
| expected | T | |
20+
21+
## Returns
22+
23+
[ObjectAssertionsChain&lt;T&gt;](MrKWatkins.Assertions.ObjectAssertionsChain-1.md)

0 commit comments

Comments
 (0)