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()); }
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()); }
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 Registration_Is_Added_To_List() { AreaBlade blade = new AreaBlade(); var regList = new AutoRegistrationList(); blade.AddRegistrations(regList); Assert.IsNotNull(regList); Assert.IsNotEmpty(regList.ToList()); }
public void Default_MvcBlade_Returns_Filled_Registration_List() { var blade = new RoutingBlade(); var list = new AutoRegistrationList(); blade.AddRegistrations(list); Assert.IsNotEmpty(list.ToList()); Assert.AreEqual(list.Count(), 1); }
public void Registration_Is_Added_To_List() { AreaBlade blade = new AreaBlade(); var regList = new AutoRegistrationList(); blade.AddRegistrations(regList); Assert.IsNotNull(regList); Assert.IsNotEmpty(regList.ToList()); }
public void Default_MvcBlade_Returns_Filled_Registration_List() { var blade = new RoutingBlade(); var list = new AutoRegistrationList(); blade.AddRegistrations(list); Assert.IsNotEmpty(list.ToList()); Assert.AreEqual(list.Count(), 1); }