static ProjectData() { // Temporary add extra type serialization dependencies here PluginFactory.RegisterModelType(typeof(ProjectPaneModel)); PluginFactory.RegisterModelType(typeof(MarkerPaneModel)); PluginFactory.RegisterModelType(typeof(Model.MarkerModel)); PluginFactory.RegisterModelType(typeof(Model.FileModel)); }
public void RegisterModelTypeTest() { PluginFactory.LoadPlugins(pluginPath); var beforeLength = PluginFactory.GetModelTypes().Length; PluginFactory.RegisterModelType(typeof(PluginFactoryTests)); var actual = PluginFactory.GetModelTypes(); CollectionAssert.Contains(actual, typeof(PluginFactoryTests)); Assert.IsTrue(actual.Length == beforeLength + 1); }