public void TestGradoToxicidadPairWise2() { HU2 Obj = new HU2(); var ObjE = new Elemento(); ObjE.PH = new Propiedad() { ValorRecibido = 6, ValorPonderado = 0 }; ObjE.NP = new Propiedad() { ValorRecibido = "20-30", ValorPonderado = 0 }; ObjE.CN = new Propiedad() { ValorRecibido = "BAJA", ValorPonderado = 0 }; ObjE.Acidez = new Propiedad() { ValorRecibido = "ALCALINO", ValorPonderado = 0 }; ObjE.Tipo = new Propiedad() { ValorRecibido = "HOMEOPÁTICO", ValorPonderado = 0 }; ObjE.Composicion = new Propiedad() { ValorRecibido = "EXCIPIENTE", ValorPonderado = 0 }; Assert.AreEqual(-1, Obj.ObtenerGradoToxicidad(ObjE)); }
public void TestGradoToxicidadPairWise1() { HU2 Obj = new HU2(); var ObjE = new Elemento(); ObjE.PH = new Propiedad() { ValorRecibido = 6, ValorPonderado = 0 }; ObjE.NP = new Propiedad() { ValorRecibido = "10-20", ValorPonderado = 0 }; ObjE.CN = new Propiedad() { ValorRecibido = "ALTA", ValorPonderado = 0 }; ObjE.Acidez = new Propiedad() { ValorRecibido = "BÁSICO", ValorPonderado = 0 }; ObjE.Tipo = new Propiedad() { ValorRecibido = "MTP", ValorPonderado = 0 }; ObjE.Composicion = new Propiedad() { ValorRecibido = "ACTIVO", ValorPonderado = 0 }; Assert.AreEqual(-1, Obj.ObtenerGradoToxicidad(ObjE)); }