public void TransitionSetDownCast() { tlog.Debug(tag, $"TransitionSetDownCast START"); using (TransitionSet transitionSet = new TransitionSet()) { var testingTarget = TransitionSet.DownCast(transitionSet); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TransitionSet>(testingTarget, "Should be an Instance of TransitionSet!"); testingTarget.Dispose(); } tlog.Debug(tag, $"TransitionSetDownCast END (OK)"); }
public void TransitionSetDownCastWithNullHandle() { tlog.Debug(tag, $"TransitionSetDownCastWithNullHandle START"); using (TransitionSet transitionSet = new TransitionSet()) { try { TransitionSet.DownCast(null); } catch (ArgumentNullException e) { tlog.Debug(tag, e.Message.ToString()); tlog.Debug(tag, $"TransitionSetDownCastWithNullHandle END (OK)"); Assert.Pass("Caught ArgumentNullException : Passed!"); } } }