public void AddReturnValue_Empty_CountOne() { var parameters = new ProcedureParameterCollection(); parameters.AddReturnValue(); Assert.AreEqual(1, parameters.Count); }
public void AddReturnValue_AlreadyExists_CountOne() { var parameters = new ProcedureParameterCollection(); parameters.Add(new IntegerProcedureParameter("retVal", SqlDbType.Int, ParameterDirection.ReturnValue)); parameters.AddReturnValue(); Assert.AreEqual(1, parameters.Count); }
public void ExceptReturnValue_ExcludesOneItem_CountOne() { var parameters = new ProcedureParameterCollection(); parameters.Add(MockProcedureParameter.GetParameter(parameterName)); parameters.AddReturnValue(); var actual = parameters.ExceptReturnValue; Assert.AreEqual(2, parameters.Count); Assert.IsNotNull(actual); Assert.AreEqual(1, actual.ToList().Count); }