public void Equals_WhenObjectIsNonPostingLine_ReturnsFalse() { IPostingLine sut = CreateSut(); bool result = sut.Equals(_fixture.Create <object>()); Assert.That(result, Is.False); }
public void Equals_WhenObjectIsPostingLineWhereIdentifierDoesNotMatch_ReturnsFalse() { IPostingLine sut = CreateSut(); bool result = sut.Equals(CreateSut()); Assert.That(result, Is.False); }
public void Equals_WhenObjectIsNull_ReturnsFalse() { IPostingLine sut = CreateSut(); bool result = sut.Equals(null); Assert.That(result, Is.False); }
public void Equals_WhenObjectIsPostingLineWhereIdentifierDoesMatch_ReturnsTrue() { Guid identifier = Guid.NewGuid(); IPostingLine sut = CreateSut(identifier); bool result = sut.Equals(CreateSut(identifier)); Assert.That(result, Is.True); }