public void CLM_light_SuccessfulImport_Spring_2_into_Optional_DesignContainer() { List <string> componentPaths = new List <string>(); string designContainerPath = "/@DesignSpace_MSD/@Spring_OptionalContainer"; string componentToInsertPath = "/@Components/@Springs/@Spring_2"; componentPaths.Add(componentToInsertPath); Assert.True(File.Exists(mgaFile), "Failed to generate the mga."); bool insertionSuccessful = CLM_LightRunner.Run(mgaFile, designContainerPath, componentPaths); Assert.True(insertionSuccessful, string.Format("Failed to insert {0}", componentToInsertPath)); }
public void CLM_light_FailedImport_Spring_MissingProperty() { List <string> componentPaths = new List <string>(); string designContainerPath = "/@DesignSpace_MSD/@Spring_1"; string componentToInsertPath = "/@Components/@Springs/@CLM_Failure/@Spring_MissingProperty"; componentPaths.Add(componentToInsertPath); Assert.True(File.Exists(mgaFile), "Failed to generate the mga."); bool insertionSuccessful = CLM_LightRunner.Run(mgaFile, designContainerPath, componentPaths); Assert.False(insertionSuccessful, string.Format("Failed to insert {0}", componentToInsertPath)); }