public void IsBitSetOrConverter_Value74Parameter74_True()
        {
            var converter = new IsBitSetAndConverter();
            var res       = (bool)converter.Convert(74, typeof(bool), 74, CultureInfo.InvariantCulture);

            Assert.IsTrue(res);
        }
Ejemplo n.º 2
0
        public void IsBitSetAndConverter_Value74ParameterMinus5_False()
        {
            var converter = new IsBitSetAndConverter();
            var res       = (bool)converter.Convert(74, typeof(bool), -5, CultureInfo.InvariantCulture);

            Assert.IsFalse(res);
        }
Ejemplo n.º 3
0
        public void IsBitSetAndConverter_ValueNotNullParameterNull_False()
        {
            var converter = new IsBitSetAndConverter();
            var res       = (bool)converter.Convert(64, typeof(bool), null, CultureInfo.InvariantCulture);

            Assert.IsFalse(res);
        }
Ejemplo n.º 4
0
        public void IsBitSetAndConverter_Value7Parameter1_False()
        {
            var converter = new IsBitSetAndConverter();
            var res       = (bool)converter.Convert(7, typeof(bool), 1, CultureInfo.InvariantCulture);

            Assert.IsTrue(res);
        }
Ejemplo n.º 5
0
        public void IsBitSetAndConverter_TargetTypeNotBool_Exception()
        {
            var converter = new IsBitSetAndConverter();

            converter.Convert(null, typeof(int), null, CultureInfo.InvariantCulture);
        }