public void Equals() { var sut = new B1(new D1()); var other = new B1(new D1()); sut.Should().Be(other); }
public void NotEquals() { var sut = new B1(new D1()); var other = new B1(Mock.Of<D1>()); sut.Should().NotBe(other); }
public void Equals() { var d1 = new D1(); var b1 = new B1(d1); var c1 = new C1(d1); var sut = new A(b1, c1); var other = new A(b1, c1); sut.Should().Be(other); }