Пример #1
0
        public void LogicalSpaceCommandTest()
        {
            SwitchVM      switchOne = new SwitchVM();
            LogicalBaseVM space     = LogicalBaseVM.CreateLogicalSpace();

            ICommand switchingSwitchOne = switchOne.SwitchingCommand;

            ICommand selectSignalCommand = switchOne.SelectSignalCommand;

            selectSignalCommand.Execute(null);

            selectSignalCommand = space.SelectSignalCommand;
            selectSignalCommand.Execute(space.InputSignals[0]);

            switchingSwitchOne.Execute(null);
            Assert.AreEqual(true, space.OutputSignals[0].SignalValue);
        }
Пример #2
0
 public LogicalSpaceControl()
 {
     InitializeComponent();
     DataContext = LogicalBaseVM.CreateLogicalSpace();
 }