public void Equality_Default() { var a = new VersionControlEvent(); var b = new VersionControlEvent(); Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentSolutions() { var a = new VersionControlEvent { Solution = SomeSolution, Actions = { SomeAction } }; var b = new VersionControlEvent { Actions = { SomeAction } }; Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_ReallyTheSame() { var a = new VersionControlEvent { Solution = SomeSolution, Actions = SomeContent }; var b = new VersionControlEvent { Solution = SomeSolution, Actions = SomeContent }; Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }