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

            using (Any any = new Any())
            {
                var testingTarget = new Any(any);
                Assert.IsNotNull(testingTarget, "Can't create success object Any");
                Assert.IsInstanceOf <Any>(testingTarget, "Should be an instance of Any type.");

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

                testingTarget.Dispose();
            }

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