using ArchUnitNET.Domain; using ArchUnitNET.Fluent; namespace ArchUnitNET.MSTestV2 { 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.FulfilsRule(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.FulfilsRule(architecture, archRule); } } }