public void MPIPN_GetTypeShouldReturnATypeObject() { Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment); if (type != null) { Assert.Pass(); } else { Assert.Fail(); } }
public void MPIPN_GetTypeShouldReturnNull() { Type type = MercadoPagoIPN.GetType("MercadoPagoCore.Resources.PatmentMeans"); Assert.IsNull(type); }
public void MPIPN_GetTypeShouldReturnNotNullValue() { Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment); Assert.IsNotNull(type); }
public void MPIPN_GetTypeShouldFindTheRightClassType() { Type type = MercadoPagoIPN.GetType(MercadoPagoIPN.Topic.Payment); Assert.IsTrue(typeof(Payment) == type); }