Exemplo n.º 1
0
 public void CreateCopy()
 {
     CompressedStack cs1 = CompressedStack.Capture ();
     CompressedStack cs2 = cs1.CreateCopy ();
     Assert.IsFalse (cs1.Equals (cs2), "cs1.Equals (cs2)");
     Assert.IsFalse (cs2.Equals (cs1), "cs2.Equals (cs1)");
     Assert.IsFalse (cs1.GetHashCode () == cs2.GetHashCode (), "GetHashCode");
     Assert.IsFalse (Object.ReferenceEquals (cs1, cs2), "ReferenceEquals");
 }
Exemplo n.º 2
0
        public void GetCompressedStack()
        {
            CompressedStack cs1 = CompressedStack.GetCompressedStack ();
            Assert.IsNotNull (cs1, "GetCompressedStack");

            CompressedStack cs2 = CompressedStack.Capture ();
            Assert.IsNotNull (cs2, "Capture");

            Assert.IsFalse (cs1.Equals (cs2), "cs1.Equals (cs2)");
            Assert.IsFalse (cs2.Equals (cs1), "cs2.Equals (cs1)");
            Assert.IsFalse (cs1.GetHashCode () == cs2.GetHashCode (), "GetHashCode");
        }