Пример #1
0
        public void CreateIndex_EmptyDictionary_WhenInputNull()
        {
            var dict = TranscriptCacheWriter.CreateIndex(null, EqualityComparer <string> .Default);

            Assert.NotNull(dict);
            Assert.Empty(dict);
        }
Пример #2
0
        public void CreateIndex_PopulatedDictionary()
        {
            var strings = new[] { "A", "B", "D", "P", "Z" };
            var dict    = TranscriptCacheWriter.CreateIndex(strings, EqualityComparer <string> .Default);

            Assert.NotNull(dict);
            Assert.Equal(3, dict["P"]);
        }