public void PropertiesTests() { var diagramItemViewModel = Mock.Create<IDiagramViewModel>(); var expressionMock = Mock.Create<TwoInOneOutExpression>(); var vm = new TwoInOneOutExpressionNode(diagramItemViewModel, expressionMock); TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true); }
/// <summary> /// Adds the field node. /// </summary> /// <param name="item">The item.</param> /// <param name="diagramViewModel">The diagram view model.</param> private static void AddFieldNode(TwoInOneOutExpression item, IDiagramViewModel diagramViewModel) { var node = new TwoInOneOutExpressionNode(diagramViewModel, item); diagramViewModel.Items.Add(new NodeViewModel<TwoInOneOutExpressionNode, ExpressionConnection>(node, diagramViewModel)); }