Esempio n. 1
0
        public void ItemViewDownCast()
        {
            tlog.Debug(tag, $"ItemViewDownCast START");

            using (ItemFactory factory = new ItemFactory())
            {
                using (ItemView view = new ItemView(factory))
                {
                    var testingTarget = ItemView.DownCast(view);
                    Assert.IsNotNull(testingTarget, "Should be not null!");
                    Assert.IsInstanceOf <ItemView>(testingTarget, "Should be an Instance of ItemView!");

                    testingTarget.Dispose();
                }
            }

            tlog.Debug(tag, $"ItemViewDownCast END (OK)");
        }