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); }
public void EqualsWithObject(string @string, object other, bool expected) { NotNull <string> notNull = @string; notNull.Equals(other).Should().Be(expected); }
public void EqualsWithDifferentReferences(string first, string second, bool expected) { var notNull = new NotNull <string>(first); notNull.Equals(second).Should().Be(expected); }
public void EqualsSameReference <T>(T @object) where T : class { var notNull = new NotNull <T>(@object); notNull.Equals(@object).Should().BeTrue(); }