public void Equality_Default() { var a = new VersionControlAction(); var b = new VersionControlAction(); Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentActionType() { var a = new VersionControlAction { ExecutedAt = SomeDateTime, ActionType = SomeGitAction }; var b = new VersionControlAction { ExecutedAt = SomeDateTime }; Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_ReallyTheSame() { var a = new VersionControlAction { ExecutedAt = SomeDateTime, ActionType = SomeGitAction }; var b = new VersionControlAction { ExecutedAt = SomeDateTime, ActionType = SomeGitAction }; Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }