Пример #1
0
        public void OrToBooleanConverter_IfAllTrueBoolean_ReturnTrue()
        {
            var converter = new OrToBooleanConverter();

            var values = new object[] { true, true, true };

            object result = converter.Convert(values, null, null, null);

            Assert.True((bool)result);
        }
Пример #2
0
        public void OrToBooleanConverter_IfAllFalseBoolean_ReturnFalse()
        {
            var converter = new OrToBooleanConverter();

            var values = new object[] { false, false, false };

            object result = converter.Convert(values, null, null, null);

            Assert.False((bool)result);
        }