public void Apply3() { tlog.Debug(tag, $"Apply3 START"); try{ var testingTarget = new TemplateBinding("{Binding template}"); testingTarget.Apply(null, null, View.FocusableProperty); //InvalidOperationException } catch (InvalidOperationException e) { Assert.True(true, "Catch exception: " + e.Message.ToString()); } tlog.Debug(tag, $"Apply3 END"); }
public void Apply2() { tlog.Debug(tag, $"Apply2 START"); try { var testingTarget = new TemplateBinding("{Binding template}"); Assert.IsNotNull(testingTarget, "Can't create success object TemplateBinding."); testingTarget.Apply(null, new View(), View.FocusableProperty); } catch (Exception e) { Assert.Fail("Catch exception: " + e.Message.ToString()); } tlog.Debug(tag, $"Apply2 END"); }
public void Apply() { tlog.Debug(tag, $"Apply START"); try { var testingTarget = new TemplateBinding("{Binding template}"); Assert.IsNotNull(testingTarget, "Can't create success object TemplateBinding."); testingTarget.Apply(false); testingTarget.Unapply(false); } catch (Exception e) { Assert.Fail("Catch exception: " + e.Message.ToString()); } tlog.Debug(tag, $"Apply END"); }