Пример #1
0
        public void Create()
        {
            EditableDataset dataset = EditableDataset.Create();

            Assert.IsNotNull(dataset);
            Assert.AreEqual(0, dataset.Count);
        }
Пример #2
0
        public void RemoveFromEmpty()
        {
            EditableDataset dataset      = EditableDataset.Create();
            IDatasetEntry   removedEntry = dataset.Remove(fooPlugInEntry.Name);

            Assert.AreEqual(0, dataset.Count);
            Assert.IsNull(removedEntry);
        }
Пример #3
0
        //---------------------------------------------------------------------

        private EditableDataset CreateDatasetAndAddEntry()
        {
            EditableDataset dataset = EditableDataset.Create();

            dataset.Add(fooPlugInEntry);
            Assert.AreEqual(1, dataset.Count);

            IList <string> libs = fooPlugInEntry.ReferencedAssemblies;

            AssertListsAreEqual(libs, dataset.ReferencedByEntries(libs));

            IDatasetEntry foundEntry = dataset.Find(fooPlugInEntry.Name);

            Assert.IsNotNull(foundEntry);
            AssertEntriesAreEqual(fooPlugInEntry, foundEntry);

            return(dataset);
        }
Пример #4
0
        public void AddNull()
        {
            EditableDataset dataset = EditableDataset.Create();

            dataset.Add(null);
        }
Пример #5
0
        public void Save_NonLoadedDataset()
        {
            EditableDataset dataset = EditableDataset.Create();

            dataset.Save();
        }
Пример #6
0
        public void SaveAs_Null()
        {
            EditableDataset dataset = EditableDataset.Create();

            dataset.SaveAs(null);
        }
Пример #7
0
        public void RemoveNull()
        {
            EditableDataset dataset = EditableDataset.Create();

            dataset.Remove(null);
        }