Set CodeAnalysisTreatWarningsAsErrors as true.
Added the test.