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