Added code to handle enum types in CSharpMigrationCodeGenerator.cs

Added a couple of unit tests.