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