public void Equality_SettingValues() { var a = new TaskEvent { Version = "1", TaskId = "2", Action = TaskAction.Activate, NewParentId = "x", Annoyance = Likert5Point.Negative1, Importance = Likert5Point.Neutral, Urgency = Likert5Point.Positive1 }; var b = new TaskEvent { Version = "1", TaskId = "2", Action = TaskAction.Activate, NewParentId = "x", Annoyance = Likert5Point.Negative1, Importance = Likert5Point.Neutral, Urgency = Likert5Point.Positive1 }; Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_Default() { var a = new TaskEvent(); var b = new TaskEvent(); Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentImportance() { var a = new TaskEvent { Importance = Likert5Point.Neutral }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentUrgency() { var a = new TaskEvent { Urgency = Likert5Point.Positive1 }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentDifferentAnnoyance() { var a = new TaskEvent { Annoyance = Likert5Point.Negative1 }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentParent() { var a = new TaskEvent { NewParentId = "x" }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentAction() { var a = new TaskEvent { Action = TaskAction.Activate }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentTask() { var a = new TaskEvent { TaskId = "2" }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }
public void Equality_DifferentVersion() { var a = new TaskEvent { Version = "1" }; var b = new TaskEvent(); Assert.AreNotEqual(a, b); Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode()); }