public void CloneTest() { tlog.Debug(tag, $"CloneTest START"); try { Binding.Binding t2 = new Binding.Binding("Test"); Assert.IsNotNull(t2, "null Binding"); Binding.Binding c = t2.Clone() as Binding.Binding; Assert.IsNotNull(c, "null Binding"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"CloneTest END"); }
public void CloneTest() { tlog.Debug(tag, $"CloneTest START"); try { Binding.Binding t2 = new Binding.Binding("Test"); Assert.IsNotNull(t2, "null Binding"); Binding.Binding c = t2.Clone() as Binding.Binding; Assert.IsNotNull(c, "null Binding"); t2.TargetNullValue = new object(); var ret = t2.GetSourceValue(null, null); Assert.IsNotNull(ret, "Should not be null"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"CloneTest END"); }