Ejemplo n.º 1
0
        public void LogicalNotCommandTest()
        {
            SwitchVM      switchOne = new SwitchVM();
            LogicalBaseVM not       = LogicalBaseVM.CreateLogicalNot();

            ICommand selectSignalCommand = switchOne.SelectSignalCommand;

            selectSignalCommand.Execute(null);

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

            Assert.AreEqual(true, not.OutputSignals[0].SignalValue);
        }
Ejemplo n.º 2
0
        public LogicalNotControl()
        {
            InitializeComponent();

            DataContext = LogicalBaseVM.CreateLogicalNot();
        }