Пример #1
0
        public void CreateAddRemoveKeyAndValue()
        {
            var        sRepo  = new SourceRepository();
            var        source = new CodeCoverageStringTextSource("", "");
            const uint fileId = 1;

            sRepo.Add(fileId, source);
            Assert.True(sRepo.Count == 1);

            Assert.True(sRepo.ContainsKey(fileId));
            Assert.True(sRepo.Remove(fileId));
            Assert.True(sRepo.Count == 0);
            Assert.False(sRepo.Remove(fileId));
            Assert.True(sRepo.Count == 0);
        }