public void RemovePolicyRuleShouldPassIfExistingScope() { XmlPolicyStore store = new XmlPolicyStore("My Xml Store Path", new MockXmlRepository(@"..\..\content\claimMappings-PassingTest4.xml")); Assert.AreEqual(1, store.RetrieveScopes().ElementAt(0).Rules.Count); var rule = store.RetrieveScopes().ElementAt(0).Rules.ElementAt(0); store.RemovePolicyRule(new Uri("http://localhost/1"), rule); Assert.AreEqual(0, store.RetrieveScopes().ElementAt(0).Rules.Count); }