Пример #1
0
        public void HIGH_DummyInputPort_ShouldReturn_HIGH()
        {
            var dummyPort = new TestInputPort();

            dummyPort.SetInternalState(BinaryState.High);
            Assert.AreEqual(BinaryState.High, dummyPort.Read());
        }
Пример #2
0
        public void LOW_DummyInputPort_ShouldReturn_LOW()
        {
            var dummyPort = new TestInputPort();

            dummyPort.SetInternalState(BinaryState.Low);
            Assert.AreEqual(BinaryState.Low, dummyPort.Read());
        }
Пример #3
0
        public void HIGH_INVERTED_DummyInputPort_ShouldReturn_LOW()
        {
            var dummyPort = new TestInputPort();

            dummyPort = (TestInputPort)dummyPort.WithInvertedState();
            dummyPort.SetInternalState(BinaryState.High);
            Assert.AreEqual(BinaryState.Low, dummyPort.Read());
        }