Ejemplo n.º 1
0
        public void WhenRefValuesAreSameObjectThenReturnTrue()
        {
            var refValue = new RefValue("someid", "somename");
            var comparer = new RefValueComparer();

            Assert.True(comparer.Equals(refValue, refValue));
        }
Ejemplo n.º 2
0
        public void WhenRefValuesHaveDifferentIdsButSameNameThenReturnTrue()
        {
            var refValue  = new RefValue("someid", "somename");
            var refValue2 = new RefValue("someid2", "somename");
            var comparer  = new RefValueComparer();

            Assert.False(comparer.Equals(refValue, refValue2));
        }
Ejemplo n.º 3
0
        public void WhenRefValuesHaveTheSameIdButDifferentNameThenReturnTrue()
        {
            var refValue  = new RefValue("someid", "somename");
            var refValue2 = new RefValue("someid", "somename2");
            var comparer  = new RefValueComparer();

            Assert.True(comparer.Equals(refValue, refValue2));
        }