public void IsBitSetOrConverter_Value74Parameter74_True() { var converter = new IsBitSetAndConverter(); var res = (bool)converter.Convert(74, typeof(bool), 74, CultureInfo.InvariantCulture); Assert.IsTrue(res); }
public void IsBitSetAndConverter_Value74ParameterMinus5_False() { var converter = new IsBitSetAndConverter(); var res = (bool)converter.Convert(74, typeof(bool), -5, CultureInfo.InvariantCulture); Assert.IsFalse(res); }
public void IsBitSetAndConverter_ValueNotNullParameterNull_False() { var converter = new IsBitSetAndConverter(); var res = (bool)converter.Convert(64, typeof(bool), null, CultureInfo.InvariantCulture); Assert.IsFalse(res); }
public void IsBitSetAndConverter_Value7Parameter1_False() { var converter = new IsBitSetAndConverter(); var res = (bool)converter.Convert(7, typeof(bool), 1, CultureInfo.InvariantCulture); Assert.IsTrue(res); }
public void IsBitSetAndConverter_TargetTypeNotBool_Exception() { var converter = new IsBitSetAndConverter(); converter.Convert(null, typeof(int), null, CultureInfo.InvariantCulture); }