Exemplo n.º 1
0
		public void Initialize_4_Sets_Command_Instance()
		{
            var mockConnWrap = NSubstitute.Substitute.For<ISqlConnection>();
            var instance = new SqlCommandWrap("command text string", mockConnWrap);
		Assert.IsNotNull(instance.SqlCommandInstance);
		}
Exemplo n.º 2
0
		public void Initialize_3_Sets_Command_Instance()
		{
            var instance = new SqlCommandWrap("command text string");
		Assert.IsNotNull(instance.SqlCommandInstance);
		}
Exemplo n.º 3
0
		public void Initialize_2_Sets_Command_Instance()
		{
            var newCmd = new SqlCommand();
            var instance = new SqlCommandWrap(newCmd);
		Assert.AreSame(newCmd, instance.SqlCommandInstance);
		}
Exemplo n.º 4
0
		public void Initialize_1_Sets_Command_Instance()
		{
			var instance = new SqlCommandWrap();
		Assert.IsNotNull(instance.SqlCommandInstance);
		}
Exemplo n.º 5
0
		public void Constructor_1_Sets_Command_Instance()
		{
			var instance = new SqlCommandWrap();
		Assert.IsNotNull(instance.SqlCommandInstance);
		}
Exemplo n.º 6
0
 public void Initialize_4_Sets_Command_Instance()
 {
     var mockConnWrap = _mockRepository.Stub<ISqlConnection>();
     var instance = new SqlCommandWrap("command text string", mockConnWrap);
     Assert.IsNotNull(instance.SqlCommandInstance);
 }