void SaveLoad() { // We can use Loyc.Essentials as a test assembly to put in the project var proj = new ProjectModel(new TaskRunner(), new OptionsModel()); // First try an empty project var mstream = new MemoryStream(); Expect(!proj.Assemblies.Any()); proj.Save(mstream); proj = ProjectModel.Load(mstream); Expect(!proj.Assemblies.Any()); }
public ApplicationModel(ProjectModel project) { _project = project; }