public void CommandWhenAddParam_IncreasesSizeByOne() { using(SqlCommand command = new SqlCommand("")){ command.AddParam("Value", "Parameter"); Assert.AreEqual(1, command.Parameters.Count); } }
public void CommandWhenAddParam_CreatesParamWithValue() { using(SqlCommand command = new SqlCommand()){ command.AddParam("Parameter", "Value"); Assert.AreEqual("Value", command.Parameters[0].Value); } }