-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,227 additions
and
494 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
|
||
namespace FluentAssertions.Types; | ||
|
||
/// <summary> | ||
/// Contains a number of methods to assert that a <see cref="ParameterInfo"/> is in the expected state. | ||
/// </summary> | ||
[DebuggerNonUserCode] | ||
public class ParameterInfoAssertions : ReflectionAssertions<ParameterInfo, ParameterInfoAssertions> | ||
{ | ||
public ParameterInfoAssertions(ParameterInfo parameterInfo) | ||
: base(parameterInfo) | ||
{ | ||
} | ||
|
||
internal static string GetDescriptionFor(ParameterInfo parameter) | ||
{ | ||
return parameter?.Name ?? string.Empty; | ||
} | ||
|
||
internal override string SubjectDescription => Subject.Name; | ||
|
||
/// <summary> | ||
/// Returns the type of the subject the assertion applies on. | ||
/// </summary> | ||
protected override string Identifier => "parameter"; | ||
} |
Oops, something went wrong.