Ejemplo n.º 1
0
        public void MPIPN_GetTypeShouldReturnATypeObject()
        {
            Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment);

            if (type != null)
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail();
            }
        }
Ejemplo n.º 2
0
        public void MPIPN_GetTypeShouldReturnNull()
        {
            Type type = MercadoPagoIPN.GetType("MercadoPagoCore.Resources.PatmentMeans");

            Assert.IsNull(type);
        }
Ejemplo n.º 3
0
        public void MPIPN_GetTypeShouldReturnNotNullValue()
        {
            Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment);

            Assert.IsNotNull(type);
        }
Ejemplo n.º 4
0
        public void MPIPN_GetTypeShouldFindTheRightClassType()
        {
            Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment);

            Assert.IsTrue(typeof(Payment) == type);
        }