コード例 #1
0
        public void PerformLogicWithTrueInitializationAndTrue()
        {
            var orOperator = new OrOperator(true);
            Assert.IsNotNull(orOperator);

            var result = orOperator.PerformLogic(true);

            Assert.IsTrue(orOperator.Result);
            Assert.AreEqual(orOperator.Result, result);
        }
コード例 #2
0
        public void PerformLogicWithFalseInitializationAndFalse()
        {
            var orOperator = new OrOperator(false);
            Assert.IsNotNull(orOperator);

            var result = orOperator.PerformLogic(false);

            Assert.IsFalse(orOperator.Result);
            Assert.AreEqual(orOperator.Result, result);
        }