public void TestInitializePluginNodeSettings_InitializesLoadedSettingOnPluginNode() { var nodeMoq = new Mock <NodeModel>(""); var testPluginNode = new TestPluginNode { Model = nodeMoq.Object }; nodeMoq.SetupGet(n => n.NodeViewModel).Returns(testPluginNode); testPluginNode.InitializePluginNodeSettings(); nodeMoq.Verify(n => n.GetVariable(It.IsAny <string>()), Times.Once); }
public void TestInitializePluginNodeSettings_InitializesNewSettingInNodeModelPersistedVariables() { var nodeMoq = new Mock <NodeModel>(""); var testPluginNode = new TestPluginNode { Model = nodeMoq.Object }; nodeMoq.SetupGet(n => n.NodeViewModel).Returns(testPluginNode); testPluginNode.InitializePluginNodeSettings(); nodeMoq.Verify(n => n.InitializePersistedVariableToProperty(It.IsAny <PropertyInfo>()), Times.Once); }