Пример #1
0
        public void ApplyTest2()
        {
            tlog.Debug(tag, $"ApplyTest2 START");
            try
            {
                Func <View, FocusEffect> getter = (v) => new FocusEffect();
                var mt = new TypedBinding <View, FocusEffect>(getter, null, null);
                Assert.IsNotNull(mt, "null TypedBinding");

                mt.Apply(null, new View(), View.FocusableProperty);
            }
            catch (Exception e)
            {
                Assert.Fail("Caught Exception" + e.ToString());
            }
            tlog.Debug(tag, $"ApplyTest2 END");
        }
Пример #2
0
        public void ApplyTest()
        {
            tlog.Debug(tag, $"ApplyTest START");
            try
            {
                Func <View, FocusEffect> getter = (v) => new FocusEffect();
                var mt = new TypedBinding <View, FocusEffect>(getter, null, null);
                Assert.IsNotNull(mt, "null TypedBinding");

                mt.Apply();
            }
            catch (InvalidOperationException e)
            {
                Assert.True(true, "Caught Exception" + e.ToString());
            }
            tlog.Debug(tag, $"ApplyTest END");
        }