예제 #1
0
        public void Transactional_Unit_Equals3_OtherIsUnequivalent()
        {
            String currentValue = "Current";
            String originalValue = "Original";
            Transactional<String> target = new Transactional<String>(currentValue, originalValue);
            String other = originalValue;

            Boolean expected = false;
            Boolean actual = target.Equals(other);
            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void Transactional_Unit_Equals2_OtherIsSameReference()
        {
            String currentValue = "Current";
            String originalValue = "Original";
            Transactional<String> target = new Transactional<String>(currentValue, originalValue);
            Transactional<String> other = target;

            Boolean expected = true;
            Boolean actual = target.Equals(other);
            Assert.AreEqual(expected, actual);
        }
예제 #3
0
        public void Transactional_Unit_Equals2_ValuesAreNull()
        {
            String currentValue = null;
            String originalValue = null;
            Transactional<String> target = new Transactional<String>(currentValue, originalValue);
            Transactional<String> other = new Transactional<String>(currentValue, originalValue);

            Boolean expected = true;
            Boolean actual = target.Equals(other);
            Assert.AreEqual(expected, actual);
        }
예제 #4
0
        public void Transactional_Unit_Equals1_ObjIsUnequivalentTransactional()
        {
            String currentValue = "Current";
            String originalValue = "Original";
            Transactional<String> target = new Transactional<String>(currentValue, originalValue);
            Object obj = new Transactional<String>(currentValue);

            Boolean expected = false;
            Boolean actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
        }