public void ModelTrackerCollection_NewCollection_AddModel_ClearCollection_CollectionEmpty()
        {
            var m = new TestModel();

            Empty.Add(m);
            Empty.Clear();

            Assert.IsTrue(Empty.Count == 0);
        }
 private void UpdateEmptyCollection()
 {
     // If the source collection is empty, push an "Empty" id into the Empty colleciton
     if (Ids.Count == 0)
     {
         Empty.Add(new Id("Empty"));
     }
     // Otherwise (has Ids), clear the Empty collection
     else
     {
         Empty.Clear();
     }
 }
Exemplo n.º 3
0
 internal void ClearSections()
 {
     if (Sections != null)
     {
         Sections.Clear();
     }
     if (Original != null)
     {
         Original.Clear();
     }
     if (Empty != null)
     {
         Empty.Clear();
     }
 }