private bool VerifyDiagExtContext(DiagnosticExtensionContext resultContext, string role, string extID, string storage, XmlDocument config)
        {
            try
            {
                Assert.AreEqual(role, resultContext.Role.RoleType.ToString());
                Assert.AreEqual("Diagnostics", resultContext.Extension);
                Assert.AreEqual(extID, resultContext.Id);
                Assert.AreEqual(storage, resultContext.StorageAccountName);

                string inner = Utilities.GetInnerXml(resultContext.WadCfg, "WadCfg");
                Assert.IsTrue(Utilities.CompareWadCfg(inner, config));

                return true;
            }
            catch
            {
                return false;
            }
        }
        private bool VerifyDiagExtContext(DiagnosticExtensionContext resultContext, string role, string extID, string storage, string config)
        {
            Utilities.PrintContext(resultContext);

            try
            {
                Assert.AreEqual(role, resultContext.Role.RoleType.ToString(), "role is not same");
                Assert.AreEqual(Utilities.PaaSDiagnosticsExtensionName, resultContext.Extension, "extension is not Diagnostics");
                Assert.AreEqual(extID, resultContext.Id, "extension id is not same");
                //Assert.AreEqual(storage, resultContext.StorageAccountName, "storage account name is not same");

                XmlDocument doc = new XmlDocument();
                doc.Load("@./da.xml");
                string inner = Utilities.GetInnerXml(resultContext.WadCfg, "WadCfg");
                Assert.IsTrue(Utilities.CompareWadCfg(inner, doc), "xml is not same");

                return true;
            }
            catch (Exception e)
            {
                Console.WriteLine("Error happens: {0}", e.ToString());
                return false;
            }
        }