public void PropertiesTests() { var diagramItemViewModel = Mock.Create<IDiagramViewModel>(); var expressionMock = Mock.Create<OneInOneOutExpression>(); var vm = new OneInOneOutExpressionNode(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(OneInOneOutExpression item, IDiagramViewModel diagramViewModel) { var node = new OneInOneOutExpressionNode(diagramViewModel, item); diagramViewModel.Items.Add(new NodeViewModel<OneInOneOutExpressionNode, ExpressionConnection>(node, diagramViewModel)); }