public void Equals_Null_IsExpected() { var sut = new CIStatus(); var result = sut.Equals(null); result.Should().BeFalse(); }
public void Equals_Self_IsExpected(CIActivityStatus activityStatus, CIBuildStatus buildStatus) { var sut = new CIStatus { ActivityStatus = activityStatus, BuildStatus = buildStatus }; var result = sut.Equals(sut); result.Should().BeTrue(); }
public void Equals_DifferentBuildStatus_IsExpected(CIActivityStatus activityStatus) { var sut = new CIStatus { ActivityStatus = activityStatus, BuildStatus = CIBuildStatus.Stable }; var target = new CIStatus { ActivityStatus = activityStatus, BuildStatus = CIBuildStatus.Broken }; var result = sut.Equals(target); result.Should().BeFalse(); }
public void Equals_DifferentActivityStatus_IsExpected(CIBuildStatus buildStatus) { var sut = new CIStatus { ActivityStatus = CIActivityStatus.Idle, BuildStatus = buildStatus }; var target = new CIStatus { ActivityStatus = CIActivityStatus.Building, BuildStatus = buildStatus }; var result = sut.Equals(target); result.Should().BeFalse(); }