using ArchUnitNET.Domain; using ArchUnitNET.Fluent; // ReSharper disable once CheckNamespace namespace ArchUnitNET.TUnit { public static class ArchRuleExtensions { /// /// Verifies that the architecture meets the criteria of the archrule. /// /// The rule to test the architecture with /// The architecture to be tested public static void Check(this IArchRule archRule, Architecture architecture) { ArchRuleAssert.CheckRule(architecture, archRule); } /// /// Verifies that the architecture meets the criteria of the archrule. /// /// The architecture to be tested /// The rule to test the architecture with public static void CheckRule(this Architecture architecture, IArchRule archRule) { ArchRuleAssert.CheckRule(architecture, archRule); } } }