-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathArchRuleExtensions.cs
More file actions
29 lines (27 loc) · 1.07 KB
/
ArchRuleExtensions.cs
File metadata and controls
29 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using ArchUnitNET.Domain;
using ArchUnitNET.Fluent;
// ReSharper disable once CheckNamespace
namespace ArchUnitNET.xUnit
{
public static class ArchRuleExtensions
{
/// <summary>
/// Verifies that the architecture meets the criteria of the archrule.
/// </summary>
/// <param name="archRule">The rule to test the architecture with</param>
/// <param name="architecture">The architecture to be tested</param>
public static void Check(this IArchRule archRule, Architecture architecture)
{
ArchRuleAssert.CheckRule(architecture, archRule);
}
/// <summary>
/// Verifies that the architecture meets the criteria of the archrule.
/// </summary>
/// <param name="architecture">The architecture to be tested</param>
/// <param name="archRule">The rule to test the architecture with</param>
public static void CheckRule(this Architecture architecture, IArchRule archRule)
{
ArchRuleAssert.CheckRule(architecture, archRule);
}
}
}