Use Trace instead of console to avoid interfering with console apps.
Tidy usings.
Implementation and test of UpdateContent.