Exemplo n.º 1
0
        public void ReflectionExtensionsGetProperty()
        {
            tlog.Debug(tag, $"ReflectionExtensionsGetProperty START");

            try
            {
                TypeImplement type = new TypeImplement();

                ReflectionExtensions.GetProperty(type, "myName");
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                tlog.Debug(tag, $"ReflectionExtensionsGetProperty END (OK)");
                Assert.Pass("Caught Exception : passed!");
            }
        }
Exemplo n.º 2
0
        public void ReflectionExtensionsIsInstanceOfType()
        {
            tlog.Debug(tag, $"ReflectionExtensionsIsInstanceOfType START");

            try
            {
                TypeImplement type = new TypeImplement();
                object        o1   = new object();

                ReflectionExtensions.IsInstanceOfType(type, o1);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                tlog.Debug(tag, $"ReflectionExtensionsIsInstanceOfType END (OK)");
                Assert.Pass("Caught Exception : passed!");
            }
        }
Exemplo n.º 3
0
        public void ReflectionExtensionsIsAssignableFrom()
        {
            tlog.Debug(tag, $"ReflectionExtensionsIsAssignableFrom START");

            try
            {
                TypeImplement type = new TypeImplement();
                TypeImplement c    = new TypeImplement();

                ReflectionExtensions.IsAssignableFrom(type, c);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                tlog.Debug(tag, $"ReflectionExtensionsIsAssignableFrom END (OK)");
                Assert.Pass("Caught Exception : passed!");
            }
        }
Exemplo n.º 4
0
        public void ReflectionExtensionsGetProperties()
        {
            tlog.Debug(tag, $"ReflectionExtensionsGetProperties START");

            try
            {
                TypeImplement type = new TypeImplement();

                ReflectionExtensions.GetProperties(type);
            }
            catch (Exception e)
            {
                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
                Assert.Fail("Caught Exception" + e.ToString());
            }

            tlog.Debug(tag, $"ReflectionExtensionsGetProperties END (OK)");
            Assert.Pass("ReflectionExtensionsGetProperties");
        }