示例#1
0
        public void Ctor_WithNoArguments_CreatesModelWithZeroCount()
        {
            var local = new SimplifiedKeyDictionaryMother.Implementation();

            Assert.IsNotNull(local);
            Assert.AreEqual(0, local.Count);
            AssertEnumerator(local);
        }
示例#2
0
        private static void AssertEnumerator(SimplifiedKeyDictionaryMother.Implementation dictionary)
        {
            var counter = 0;

            foreach (var item in dictionary)
            {
                counter++;
            }

            Assert.AreEqual(dictionary.Count, counter);
        }
示例#3
0
 public void SetUp()
 {
     this.model = SimplifiedKeyDictionaryMother.Implementation.Create();
 }