public void Can_Add_Valid_Registration_To_List_And_Clear() {
            var registration = new ServiceRegistration();
            var list = new AutoRegistrationList { registration, registration };

            Assert.IsNotEmpty(list.ToList());
            Assert.AreEqual(list.Count(), 2);

            list.Clear();

            Assert.IsEmpty(list.ToList());
        }
        public void Can_Add_Null_Registration_To_List_And_Clear() {
            var list = new AutoRegistrationList();
            list.Add(null).Add(null);

            Assert.IsNotEmpty(list.ToList());
            Assert.AreEqual(list.Count(), 2);

            list.Clear();

            Assert.IsEmpty(list.ToList());
        }
예제 #3
0
        public void Can_Add_Null_Registration_To_List_And_Clear()
        {
            var list = new AutoRegistrationList();

            list.Add(null).Add(null);

            Assert.IsNotEmpty(list.ToList());
            Assert.AreEqual(list.Count(), 2);

            list.Clear();

            Assert.IsEmpty(list.ToList());
        }
예제 #4
0
        public void Can_Add_Valid_Registration_To_List_And_Clear()
        {
            var registration = new ServiceRegistration();
            var list         = new AutoRegistrationList {
                registration, registration
            };

            Assert.IsNotEmpty(list.ToList());
            Assert.AreEqual(list.Count(), 2);

            list.Clear();

            Assert.IsEmpty(list.ToList());
        }