public void IdValidTheP() { //Arrange WebForm2 check = new WebForm2(); // Act bool x = check.IdValid("id"); //Assert Assert.IsFalse(x); }
public void TestTransaccion() { WebForm2 a = new WebForm2(); int valor_actual = 0; valor_actual = a.cantidad(-1); int valor_esperado = 0; Assert.AreEqual(valor_esperado, valor_actual); }