Пример #1
0
        public void TestAnd()
        {
            // Arrange
            var boolTrue = new BooleanValue(true);
            var boolFalse = new BooleanValue(false);

            // Act & Assert
            Assert.IsFalse(((BooleanValue)boolFalse.And(boolFalse)).Val);
            Assert.IsFalse(((BooleanValue)boolTrue.And(boolFalse)).Val);
            Assert.IsFalse(((BooleanValue)boolFalse.And(boolTrue)).Val);
            Assert.IsTrue(((BooleanValue)boolTrue.And(boolTrue)).Val);
        }
        public void TestAnd()
        {
            // Arrange
            var boolTrue  = new BooleanValue(true);
            var boolFalse = new BooleanValue(false);

            // Act & Assert
            Assert.IsFalse(((BooleanValue)boolFalse.And(boolFalse)).Val);
            Assert.IsFalse(((BooleanValue)boolTrue.And(boolFalse)).Val);
            Assert.IsFalse(((BooleanValue)boolFalse.And(boolTrue)).Val);
            Assert.IsTrue(((BooleanValue)boolTrue.And(boolTrue)).Val);
        }