public void RemoveItemTest() { ModuleCollection mc; Package package; Module m; // // Setup the test. // package = new Package(); mc = new ModuleCollection(package); m = new Module(); mc.Add(m); // // Run the test. // mc.Remove(m); // // Verify the test. // Assert.AreEqual(null, m.Package); Assert.AreEqual(0, mc.Count); }