Beispiel #1
0
        public void WhenEqualsWithDifferentValue_ThenReturnsFalse()
        {
            var result =
                new TestSingleStringValueObject("avalue").Equals(new TestSingleStringValueObject("anothervalue"));

            result.Should().BeFalse();
        }
        public void WhenHasValueAndValueIsNotNull_ThenReturnsTrue()
        {
            var result = new TestSingleStringValueObject("avalue").HasValue();

            result.Should().BeTrue();
        }
        public void WhenEqualsWithSameValue_ThenReturnsTrue()
        {
            var result = new TestSingleStringValueObject("avalue").Equals(new TestSingleStringValueObject("avalue"));

            result.Should().BeTrue();
        }
Beispiel #4
0
        public void WhenEqualsWithNull_ThenReturnsFalse()
        {
            var result = new TestSingleStringValueObject("avalue").Equals(null);

            result.Should().BeFalse();
        }