예제 #1
0
        public void AlignmentDownCast()
        {
            tlog.Debug(tag, $"AlignmentDownCast START");

            var testingTarget = new Alignment();

            Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
            Assert.IsInstanceOf <Alignment>(testingTarget, "Should be an instance of Alignment type.");

            try
            {
                Alignment.DownCast(testingTarget);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"AlignmentDownCast END (OK)");
        }