public void DontDetectDuplicatesIfTimeSpanIsTooLong() { HtmlViewDuplicateEventFinder duplicateFinder = new HtmlViewDuplicateEventFinder(); duplicateFinder.IsDuplicateEvent("abc"); Thread.Sleep(300); Assert.IsFalse(duplicateFinder.IsDuplicateEvent("abc")); }
public void CorrectlyDetectDuplicate() { HtmlViewDuplicateEventFinder duplicateFinder = new HtmlViewDuplicateEventFinder(); duplicateFinder.IsDuplicateEvent("abc"); Assert.IsTrue(duplicateFinder.IsDuplicateEvent("abc")); Assert.IsTrue(duplicateFinder.IsDuplicateEvent("abc")); }
public void DontDetectDifferentEvents() { HtmlViewDuplicateEventFinder duplicateFinder = new HtmlViewDuplicateEventFinder(); duplicateFinder.IsDuplicateEvent("abc"); Assert.IsFalse(duplicateFinder.IsDuplicateEvent("zzz")); Assert.IsFalse(duplicateFinder.IsDuplicateEvent("yyy")); }
public void FirstEventIsNotADuplicate() { HtmlViewDuplicateEventFinder duplicateFinder = new HtmlViewDuplicateEventFinder(); Assert.IsFalse(duplicateFinder.IsDuplicateEvent("abc")); }