예제 #1
0
        public void ToStringWhenReflectedValuesIsEmpty_ShouldWork()
        {
            var vo = new NoPropsValue();

            var result = vo.ToString();

            Assert.AreEqual("{}", result);
        }
예제 #2
0
        public void ValueObjectsWithoutReflectedProperties_ShouldBeEqual()
        {
            var valueObject  = new NoPropsValue();
            var sameValuesVO = new NoPropsValue();

            Assert.AreEqual(valueObject, sameValuesVO);
            Assert.IsTrue(valueObject == sameValuesVO);
            Assert.IsFalse(valueObject != sameValuesVO);
        }