Inheritance: SampleBaseWithPrivateMembers
Ejemplo n.º 1
0
 public void NonIdenticalValuesHaveDifferentHash()
 {
     var a = new SampleSubWithPrivateInherited(1);
     var b = new SampleSubWithPrivateInherited(2);
     PAssert.That(() =>
         FieldwiseHasher.Hash(a) != FieldwiseHasher.Hash(b)
         && !ReferenceEquals(a, b)
         );
 }
Ejemplo n.º 2
0
 public void NonIdenticalValuesAreNotEqual()
 {
     var a = new SampleSubWithPrivateInherited(1);
     var b = new SampleSubWithPrivateInherited(2);
     PAssert.That(() =>
         !FieldwiseEquality.AreEqual(a, b)
         && !ReferenceEquals(a, b)
         );
 }
Ejemplo n.º 3
0
        public void NonIdenticalValuesHaveDifferentHash()
        {
            var a = new SampleSubWithPrivateInherited(1);
            var b = new SampleSubWithPrivateInherited(2);

            PAssert.That(() =>
                         FieldwiseHasher.Hash(a) != FieldwiseHasher.Hash(b) &&
                         !ReferenceEquals(a, b)
                         );
        }
Ejemplo n.º 4
0
        public void NonIdenticalValuesAreNotEqual()
        {
            var a = new SampleSubWithPrivateInherited(1);
            var b = new SampleSubWithPrivateInherited(2);

            PAssert.That(() =>
                         !FieldwiseEquality.AreEqual(a, b) &&
                         !ReferenceEquals(a, b)
                         );
        }