public void TestVerifParamTypeOK() { WSR_Params p = new WSR_Params(); string key = "paramString"; string param = "essai"; string value = null; p.Add(key, param); WSR_Result rExpected = new WSR_Result(); rExpected = null; ServiceForUnitTest service = new ServiceForUnitTest(); WSR_Result rActual = new WSR_Result(); rActual = service.VerifParamTypeTest(p, key, out value); Assert.AreEqual(rExpected, rActual); }
public void TestVerifParamExistNotOK() { WSR_Params p = new WSR_Params(); string key = "paramString"; string param = "essai"; object data = null; p.Add(key, param); WSR_Result rExpected = new WSR_Result(); rExpected = null; ServiceForUnitTest service = new ServiceForUnitTest(); WSR_Result rActual = new WSR_Result(); rActual = service.VerifParamExistTest <string>(p, "paramKo", out data); Assert.AreNotEqual(rExpected, rActual); }