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); }
public LogicalNotControl() { InitializeComponent(); DataContext = LogicalBaseVM.CreateLogicalNot(); }