public void Create() { EditableDataset dataset = EditableDataset.Create(); Assert.IsNotNull(dataset); Assert.AreEqual(0, dataset.Count); }
public void RemoveFromEmpty() { EditableDataset dataset = EditableDataset.Create(); IDatasetEntry removedEntry = dataset.Remove(fooPlugInEntry.Name); Assert.AreEqual(0, dataset.Count); Assert.IsNull(removedEntry); }
//--------------------------------------------------------------------- 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); }
public void AddNull() { EditableDataset dataset = EditableDataset.Create(); dataset.Add(null); }
public void Save_NonLoadedDataset() { EditableDataset dataset = EditableDataset.Create(); dataset.Save(); }
public void SaveAs_Null() { EditableDataset dataset = EditableDataset.Create(); dataset.SaveAs(null); }
public void RemoveNull() { EditableDataset dataset = EditableDataset.Create(); dataset.Remove(null); }