public void CallingColumnReturnsRenameColumnExpressionBuilder()
        {
            var collectionMock = new Mock<ICollection<IMigrationExpression>>();
            var contextMock = new Mock<IMigrationContext>();
            contextMock.SetupGet(x => x.Expressions).Returns(collectionMock.Object).AtMostOnce();

            var root = new RenameExpressionRoot(contextMock.Object);
            var builder = root.Column("Bacon");

            builder.ShouldBeOfType<RenameColumnExpressionBuilder>();
            contextMock.VerifyAll();
        }
        public void CallingColumnAddsRenameColumnExpressionToContextWithSpecifiedOldName()
        {
            var collectionMock = new Mock<ICollection<IMigrationExpression>>();

            var contextMock = new Mock<IMigrationContext>();
            contextMock.SetupGet(x => x.Expressions).Returns(collectionMock.Object);

            var root = new RenameExpressionRoot(contextMock.Object);
            root.Column("Bacon");

            collectionMock.Verify(x => x.Add(It.Is<RenameColumnExpression>(e => e.OldName.Equals("Bacon"))));
            contextMock.VerifyGet(x => x.Expressions);
        }