public void TestConvert()
        {
            var value = LongFlags.Five | LongFlags.Eight;
            var vc    = new FlagsToBooleanValueConverter <LongFlags>();

            vc.Convert(value, typeof(LongFlags), LongFlags.Eight, null).ShouldBeEquivalentTo(true);
            vc.Convert(value, typeof(LongFlags), LongFlags.Five, null).ShouldBeEquivalentTo(true);
            vc.Convert(value, typeof(LongFlags), LongFlags.Two, null).ShouldBeEquivalentTo(false);
            vc.ConvertBack(value, typeof(LongFlags), LongFlags.Five, null).ShouldBeEquivalentTo(LongFlags.Eight);
        }
		public void TestUInt16Convert()
		{
			var value = TestEnum.Two | TestEnum.Eight;
            var vc = new FlagsToBooleanValueConverter<TestEnum>();
            vc.Convert(value, typeof(TestEnum), TestEnum.Eight, null).ShouldBeEquivalentTo(true);
            vc.Convert(value, typeof(TestEnum), TestEnum.Two, null).ShouldBeEquivalentTo(true);
            vc.Convert(value, typeof(TestEnum), TestEnum.Ten, null).ShouldBeEquivalentTo(false);
            vc.ConvertBack(value, typeof(TestEnum), TestEnum.Two, null).ShouldBeEquivalentTo(TestEnum.Eight);
		}
 public void TestConvert()
 {
     var value = LongFlags.Five | LongFlags.Eight;
     var vc = new FlagsToBooleanValueConverter<LongFlags>();
     vc.Convert(value, typeof(LongFlags), LongFlags.Eight, null).ShouldBeEquivalentTo(true);
     vc.Convert(value, typeof(LongFlags), LongFlags.Five, null).ShouldBeEquivalentTo(true);
     vc.Convert(value, typeof(LongFlags), LongFlags.Two, null).ShouldBeEquivalentTo(false);
     vc.ConvertBack(value, typeof(LongFlags), LongFlags.Five, null).ShouldBeEquivalentTo(LongFlags.Eight);
 }