public void ContainsSingleError_Should_ReturnTrue_When_SingleError() { var errorsCollection = new ErrorsCollection(); errorsCollection.AddError(new Error("test123")); Assert.True(errorsCollection.ContainsSingleError()); }
public void ContainsSingleError_Should_ReturnFalse_When_MemberError() { var errorsCollection = new ErrorsCollection(); errorsCollection.AddError("member", new Error("test123")); Assert.False(errorsCollection.ContainsSingleError()); }
public void ContainsSingleError_Should_ReturnFalse_When_No() { var errorsCollection = new ErrorsCollection(); Assert.False(errorsCollection.ContainsSingleError()); }