Пример #1
0
        public void EqualsWithDifferentInstances(string first, string second, bool expected)
        {
            var firstNotNull  = new NotNull <string>(first);
            var secondNotNull = new NotNull <string>(second);

            firstNotNull.Equals(secondNotNull).Should().Be(expected);
        }
Пример #2
0
        public void EqualsWithObject(string @string, object other, bool expected)
        {
            NotNull <string> notNull = @string;

            notNull.Equals(other).Should().Be(expected);
        }
Пример #3
0
        public void EqualsWithDifferentReferences(string first, string second, bool expected)
        {
            var notNull = new NotNull <string>(first);

            notNull.Equals(second).Should().Be(expected);
        }
Пример #4
0
        public void EqualsSameReference <T>(T @object) where T : class
        {
            var notNull = new NotNull <T>(@object);

            notNull.Equals(@object).Should().BeTrue();
        }