public virtual void TestFilterHidesPrivate()
        {
            IDictionary <string, Ref> refs;
            TransportLocal            t = new _TransportLocal_146(this, src, UriOf(dst));

            try
            {
                PushConnection c = t.OpenPush();
                try
                {
                    refs = c.GetRefsMap();
                }
                finally
                {
                    c.Close();
                }
            }
            finally
            {
                t.Close();
            }
            NUnit.Framework.Assert.IsNotNull(refs);
            NUnit.Framework.Assert.IsNull(refs.Get(R_PRIVATE), "no private");
            NUnit.Framework.Assert.IsNull(refs.Get(Constants.HEAD), "no HEAD");
            NUnit.Framework.Assert.AreEqual(1, refs.Count);
            Ref master = refs.Get(R_MASTER);

            NUnit.Framework.Assert.IsNotNull(master, "has master");
            NUnit.Framework.Assert.AreEqual(B, master.GetObjectId());
        }
 public virtual void TestFilterHidesPrivate()
 {
     IDictionary<string, Ref> refs;
     TransportLocal t = new _TransportLocal_146(this, src, UriOf(dst));
     try
     {
         PushConnection c = t.OpenPush();
         try
         {
             refs = c.GetRefsMap();
         }
         finally
         {
             c.Close();
         }
     }
     finally
     {
         t.Close();
     }
     NUnit.Framework.Assert.IsNotNull(refs);
     NUnit.Framework.Assert.IsNull(refs.Get(R_PRIVATE), "no private");
     NUnit.Framework.Assert.IsNull(refs.Get(Constants.HEAD), "no HEAD");
     NUnit.Framework.Assert.AreEqual(1, refs.Count);
     Ref master = refs.Get(R_MASTER);
     NUnit.Framework.Assert.IsNotNull(master, "has master");
     NUnit.Framework.Assert.AreEqual(B, master.GetObjectId());
 }