public void TestReadSettings()
        {
            MockAdWordsAppConfig config = new MockAdWordsAppConfig();

            config.MockReadSettings(dictSettings);

            Assert.AreEqual(dictSettings["ClientCustomerId"], config.ClientCustomerId);
            Assert.AreEqual(dictSettings["DeveloperToken"], config.DeveloperToken);
            Assert.AreEqual(dictSettings["GoogleMyBusiness.LoginEmail"], config.GMBLoginEmail);
            Assert.AreEqual(dictSettings["GoogleMyBusiness.OAuth2RefreshToken"],
                            config.GMBOAuth2RefreshToken);
            Assert.AreEqual(dictSettings["MerchantCenter.AccountId"],
                            config.MerchantCenterId.ToString());

            Assert.AreEqual(dictSettings["UserAgent"], config.UserAgent);
            Assert.AreEqual(dictSettings["AdWordsApi.Server"], config.AdWordsApiServer);
            Assert.AreEqual(dictSettings["AuthorizationMethod"],
                            config.AuthorizationMethod.ToString());
            Assert.AreEqual(dictSettings["SkipReportHeader"],
                            config.SkipReportHeader.ToString().ToLower());
            Assert.AreEqual(dictSettings["SkipReportSummary"],
                            config.SkipReportSummary.ToString().ToLower());
            Assert.AreEqual(dictSettings["SkipColumnHeader"],
                            config.SkipColumnHeader.ToString().ToLower());
            Assert.AreEqual(dictSettings["IncludeZeroImpressions"],
                            config.IncludeZeroImpressions.ToString().ToLower());
            Assert.AreEqual(dictSettings["UseRawEnumValues"],
                            config.UseRawEnumValues.ToString().ToLower());
        }
        public void TestSetUserAgent()
        {
            MockAdWordsAppConfig config = new MockAdWordsAppConfig();

            Assert.Throws(typeof(ArgumentException),
                          delegate() { config.UserAgent = CONTROL_CHARS_USERAGENT; });

            Assert.Throws(typeof(ArgumentException),
                          delegate() { config.UserAgent = UNICODE_USERAGENT; });

            Assert.DoesNotThrow(delegate() { config.UserAgent = ASCII_USERAGENT; });
        }