public void GeDefinitionSaveTest() { if (File.Exists(@"Test\NewDefinition")) { File.Delete(@"Test\NewDefinition.dcb"); } var geData = new GeData(); var model = PopulateGenSettings(); geData.Settings = new GeSettings(model); var fileGroups = geData.Settings.GetFileGroups(); var baseFiles = geData.Settings.GetBaseFiles(); Assert.IsFalse(fileGroups.Contains("NewDefinition"), "Settings already contain NewDefinition"); Assert.IsFalse(baseFiles.Contains("NewDefinition"), "BaseFiles already contain NewDefinition"); var baseFile = baseFiles.Find("Definition"); var fileGroup = model.GenSettingsList[0].AddFileGroup("NewDefinition", "NewDefinition.dcb", "Test", "Definition"); geData.CreateFile(fileGroup); Assert.IsTrue(fileGroups.Contains("NewDefinition"), "Settings already contain NewDefinition"); Assert.IsTrue(baseFiles.Contains("NewDefinition"), "BaseFiles already contain NewDefinition"); }