public void CopyData_adds_operation() { var builder = new MigrationBuilder(); builder.CopyData("dbo.T1", new[] { "C1, C2" }, "dbo.T2", new[] { "C1, C3" }); Assert.Equal(1, builder.Operations.Count); Assert.IsType <CopyDataOperation>(builder.Operations[0]); var operation = (CopyDataOperation)builder.Operations[0]; Assert.Equal("dbo.T1", operation.SourceTableName); Assert.Equal(new[] { "C1, C2" }, operation.SourceColumnNames); Assert.Equal("dbo.T2", operation.TargetTableName); Assert.Equal(new[] { "C1, C3" }, operation.TargetColumnNames); }