public void ClearItemsTest() { PrivateObject param0 = CreateIniElement(); MappingCollection_Accessor target = new MappingCollection_Accessor(param0); MappingCollection tar = (MappingCollection)target.Target; tar.Clear(); IEnumerable <XElement> elements = from mappingNode in target.sessionFactoryEelement.Elements(xNamespace + "mapping") select mappingNode; XElement[] mappings = elements.ToArray <XElement>(); Assert.AreEqual(0, mappings.Length); Assert.AreEqual(0, tar.Count); }
/// <summary> /// /// </summary> public void ClearMapping() { mappingCollection.Clear(); }