コード例 #1
0
 public void INVERTED_DummyOutputPort_WithWrittenHIGH_ShouldBeInternal_LOW()
 {
     var dummyPort = new TestOutputPort();
     dummyPort = (TestOutputPort)dummyPort.WithInvertedState();
     dummyPort.Write(BinaryState.High);
     dummyPort.GetInternalState().ShouldBeEquivalentTo(BinaryState.Low);
 }
コード例 #2
0
        public void INVERTED_DummyOutputPort_WithWrittenHIGH_ShouldBeInternal_LOW()
        {
            var dummyPort = new TestOutputPort();

            dummyPort = (TestOutputPort)dummyPort.WithInvertedState();
            dummyPort.Write(BinaryState.High);
            dummyPort.GetInternalState().ShouldBeEquivalentTo(BinaryState.Low);
        }
コード例 #3
0
ファイル: TestPortTests.cs プロジェクト: qcjxberin/HA4IoT
        public void INVERTED_DummyOutputPort_WithWrittenLOW_ShouldBeInternal_HIGH()
        {
            var dummyPort = new TestOutputPort();

            dummyPort = (TestOutputPort)dummyPort.WithInvertedState();
            dummyPort.Write(BinaryState.Low);
            Assert.AreEqual(BinaryState.High, dummyPort.GetInternalState());
        }