Пример #1
0
		public void TestPEVM() {
			PropertyEditorViewModel pevm = new PropertyEditorViewModel();
			DelayNode node = new DelayNode { Delay = 0 };
			IoC.GetAllInstances = IoCLookAlike;
			pevm.Source = node;
			Assert.Equal(node, pevm.Source);
			Assert.Equal(true, pevm.Properties.Single() is IntPropertyViewModel);
			Assert.Equal(1, pevm.Properties.Count());
		}
Пример #2
0
		public PropertyEditor()
		{
			InitializeComponent();
			ic.DataContext = vm = new PropertyEditorViewModel();
		}