コード例 #1
0
        public void RootEntityAndToListInequality()
        {
            var transf1 = new RootEntityResultTransformer();
            var transf2 = new ToListResultTransformer();

            Assert.IsFalse(transf1.Equals(transf2));
            Assert.IsFalse(transf2.Equals(transf1));
        }
コード例 #2
0
        public void ToListEquality()
        {
            var transf1 = new ToListResultTransformer();
            var transf2 = new ToListResultTransformer();

            Assert.IsTrue(transf1.Equals(transf2));
            Assert.IsTrue(transf2.Equals(transf1));
        }
コード例 #3
0
        public void ToListEquality()
        {
            var transf1 = new ToListResultTransformer();
            var transf2 = new ToListResultTransformer();
            HashSet <IResultTransformer> set = new HashSet <IResultTransformer>()
            {
                transf1, transf2
            };

            Assert.That(set.Count, Is.EqualTo(1));
            Assert.IsTrue(transf1.Equals(transf2));
            Assert.IsTrue(transf2.Equals(transf1));
        }