Material not assigning in cycles render, works in blender renderer
In the 3D view you can change the viewport shading to rendered SHIFT + Z then you can see the changes you make in your material. 
But if you want to see the different colors in the 3D viewport under the solid viewport shading then you have to change the viewport color in the material settings as you did.