public void TransitionSetAssign() { tlog.Debug(tag, $"TransitionSetAssign START"); View view = new View() { Name = "view", TransitionOptions = new TransitionOptions(Window.Instance) }; view.TransitionOptions.TransitionTag = "Transition"; view.TransitionOptions.EnableTransition = true; TransitionItemBase transitionItemBase = null; using (TimePeriod timePeriod = new TimePeriod(500)) { using (AlphaFunction alphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Default)) { transitionItemBase = new TransitionItemBase(view, true, timePeriod, alphaFunction); } } var transitionSet = new TransitionSet(); Assert.IsNotNull(transitionSet, "Should be not null!"); Assert.IsInstanceOf <TransitionSet>(transitionSet, "Should be an Instance of TransitionSet!"); transitionSet.AddTransition(transitionItemBase); var testingTarget = new TransitionSet(); var result = transitionSet.Assign(testingTarget); Assert.IsNotNull(result, "Should be not null!"); Assert.IsInstanceOf <TransitionSet>(result, "Should be an Instance of TransitionSet!"); view.Dispose(); transitionItemBase.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"TransitionSetAssign END (OK)"); }
public void TransitionSetAssign() { tlog.Debug(tag, $"TransitionSetAssign START"); using (View view = new View()) { var testingTarget = new TransitionSet(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TransitionSet>(testingTarget, "Should be an Instance of TransitionSet!"); try { testingTarget.Assign(testingTarget); } catch (Exception e) { tlog.Error(tag, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } } tlog.Debug(tag, $"TransitionSetAssign END (OK)"); }