public void IsBitSetOrConverter_Value74ParameterMinus5_True() { var converter = new IsBitSetOrConverter(); var res = (bool)converter.Convert(74, typeof(bool), -5, CultureInfo.InvariantCulture); Assert.IsTrue(res); }
public void IsBitSetOrConverter_ValueNullParameterNotNull_False() { var converter = new IsBitSetOrConverter(); var res = (bool)converter.Convert(null, typeof(bool), 64, CultureInfo.InvariantCulture); Assert.IsFalse(res); }
public void IsBitSetOrConverter_Value64Parameter0_False() { var converter = new IsBitSetOrConverter(); var res = (bool)converter.Convert(64, typeof(bool), 0, CultureInfo.InvariantCulture); Assert.IsFalse(res); }
public void IsBitSetOrConverter_TargetTypeNotBool_Exception() { var converter = new IsBitSetOrConverter(); converter.Convert(null, typeof(int), null, CultureInfo.InvariantCulture); }