コード例 #1
0
 public void Initialize_4_Sets_Command_Instance()
 {
     var instance = new SqlCommandWrap();
     var mockConnWrap = _mockRepository.Stub<ISqlConnection>();
     instance.Initialize("command text string", mockConnWrap);
     Assert.IsNotNull(instance.SqlCommandInstance);
 }
コード例 #2
0
 public void Initialize_2_Sets_Command_Instance()
 {
     var instance = new SqlCommandWrap();
     var newCmd = new SqlCommand();
     instance.Initialize(newCmd);
     Assert.AreSame(newCmd, instance.SqlCommandInstance);
 }
コード例 #3
0
 public void Initialize_3_Sets_Command_Instance()
 {
     var instance = new SqlCommandWrap();
     instance.Initialize("command text string");
     Assert.IsNotNull(instance.SqlCommandInstance);
 }