public void LambdaRuleExtensionsAddUniueURIs() { var root = HasLambdaRules.New(); var ruleUris = root.GetRuleDescriptions(); var distinctUris = ruleUris.Distinct().ToArray(); // must have same length Assert.AreEqual(ruleUris.Length, distinctUris.Length); }
public void LambdaRuleExtensionsAddUniueURIs() { IDataPortal <HasLambdaRules> dataPortal = _testDIContext.CreateDataPortal <HasLambdaRules>(); var root = HasLambdaRules.New(dataPortal); var ruleUris = root.GetRuleDescriptions(); var distinctUris = ruleUris.Distinct().ToArray(); // must have same length Assert.AreEqual(ruleUris.Length, distinctUris.Length); }