public void ReverseSetsOldNameAndNewNameOnGeneratedExpression() { var expression = new RenameTableExpression { OldName = "Bacon", NewName = "ChunkyBacon" }; var reverse = (RenameTableExpression)expression.Reverse(); reverse.OldName.ShouldBe("ChunkyBacon"); reverse.NewName.ShouldBe("Bacon"); }
public void ReverseReturnsRenameTableExpression() { var expression = new RenameTableExpression { OldName = "Bacon", NewName = "ChunkyBacon" }; var reverse = expression.Reverse(); reverse.ShouldBeOfType <RenameTableExpression>(); }