public void Test_GetEntry_EntryRecord() { EntryRecord h = new EntryRecord("Test", CompareBy.AlphabetTitle, false); EntryElement e = new EntryElement("http://www.duckduckgo.com", "DuckDuckGo", CompareBy.AlphabetTitle); h.AddEntry(e, false); Assert.AreSame(h.GetEntry(0), e, "Expected and Actual Object mismatch"); }
public void Test_GetEntryException_EntryRecord() { EntryRecord h = new EntryRecord("Test", CompareBy.AlphabetTitle, false); Assert.ThrowsException <System.ArgumentOutOfRangeException>(() => h.GetEntry(0)); }