public void testClear() { global::GitSharp.Core.Ref master = newRef("refs/heads/master", ID_ONE); loose = toList(master); RefMap map = new RefMap("", packed, loose, resolved); Assert.AreSame(master, map.get("refs/heads/master")); map.clear(); Assert.IsNull(map.get("refs/heads/master")); Assert.IsTrue(map.isEmpty()); Assert.AreEqual(0, map.size()); }