public void TestEqualsNull() { var edit = new MergeBlacklistEntry { ProjectId = ProjId }; Assert.IsFalse(edit.Equals(null)); }
public void TestEqualsFalse() { var entryA = new MergeBlacklistEntry(); var entryB = new MergeBlacklistEntry(); entryA.Id = EntryId; Assert.IsFalse(entryA.Equals(entryB)); entryB = entryA.Clone(); entryA.ProjectId = ProjId; Assert.IsFalse(entryA.Equals(entryB)); entryB = entryA.Clone(); entryA.UserId = UserId; Assert.IsFalse(entryA.Equals(entryB)); entryB = entryA.Clone(); entryA.WordIds = wordIds; Assert.IsFalse(entryA.Equals(entryB)); }
public void TestClone() { var entryA = new MergeBlacklistEntry { Id = EntryId, ProjectId = ProjId, UserId = UserId, WordIds = wordIds }; var entryB = entryA.Clone(); Assert.That(entryA.Equals(entryB)); }