Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        public void Test_GetEntryException_EntryRecord()
        {
            EntryRecord h = new EntryRecord("Test", CompareBy.AlphabetTitle, false);

            Assert.ThrowsException <System.ArgumentOutOfRangeException>(() => h.GetEntry(0));
        }