public void MetricsShouldGetSortedGivenUnSortedArray() { AutoCompletionResult result = new AutoCompletionResult(); int duration = 2000; Thread.Sleep(duration); result.CompleteResult(new CompletionItem[] { }); Assert.True(result.Duration >= duration); }
public void CompletionShouldRecordDuration() { AutoCompletionResult result = new AutoCompletionResult(); int duration = 200; Thread.Sleep(duration); result.CompleteResult(new CompletionItem[] { }); Assert.True(result.Duration >= duration); }