public void Test_DeleteObject_RemovesFromObjectMan() { //---------------Set up test pack------------------- ContactPersonTestBO.LoadDefaultClassDef(); BusinessObjectManager boMan = BusinessObjectManager.Instance; ContactPersonTestBO cp = CreateSavedCP(); //---------------Assert Precondition---------------- Assert.AreEqual(1, boMan.Count); Assert.IsTrue(boMan.Contains(cp)); Assert.AreSame(cp, boMan[cp.ID]); //---------------Execute Test ---------------------- cp.Delete(); cp.Save(); //---------------Test Result ----------------------- Assert.AreEqual(0, boMan.Count); }