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"); }
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"); }