Ejemplo n.º 1
0
 public void PropertiesTests()
 {
     var diagramItemViewModel = Mock.Create<IDiagramViewModel>();
     var expressionMock = Mock.Create<FourInOneOutExpression>();
     var vm = new FourInOneOutExpressionNode(diagramItemViewModel, expressionMock);
     
     TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true);
 }
Ejemplo n.º 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(FourInOneOutExpression item, IDiagramViewModel diagramViewModel)
 {
     var node = new FourInOneOutExpressionNode(diagramViewModel, item);
     diagramViewModel.Items.Add(new NodeViewModel<FourInOneOutExpressionNode, ExpressionConnection>(node, diagramViewModel));
 }