Ejemplo n.º 1
0
        public void TestPort_Read_DoubleInverted_ShouldReturn_Low()
        {
            var p = new InvertedBinarOutput(new InvertedBinarOutput(new TestPort(BinaryState.Low)));

            p.Write(BinaryState.Low);
            Assert.AreEqual(BinaryState.Low, p.Read());
        }
Ejemplo n.º 2
0
        public void TestPort_WriteRead_Inverted_ShouldReturn_High()
        {
            var p = new InvertedBinarOutput(new TestPort(BinaryState.Low));

            p.Write(BinaryState.High);
            Assert.AreEqual(BinaryState.High, p.Read());
        }