public void DownloadAndInstallLibraryFromZip() { var tmLibraries_Before = tmXmlDatabase.tmLibraries(); tmFileStorage.install_LibraryFromZip_Docs(); // resets privs tmFileStorage.install_LibraryFromZip_Docs(); //2nd time should skip install UserGroup.Editor.assert(); Assert.IsEmpty(tmLibraries_Before, "No Libraries should be there before install"); Assert.IsNotEmpty(tmXmlDatabase.tmLibraries(), "After install, no Libraries"); Assert.IsNotEmpty(tmXmlDatabase.tmViews(), "After install, no Views"); Assert.IsNotEmpty(tmXmlDatabase.tmGuidanceItems(), "After install, no Articles"); tmFileStorage.install_LibraryFromZip_OWASP(); // resets privs UserGroup.Editor.assert(); Assert.AreEqual(2, tmXmlDatabase.tmLibraries().size(), "After OWASP install, there should be 2"); Assert.IsNotEmpty(tmXmlDatabase.tmViews(), "After OWASP install, no Views"); Assert.IsNotEmpty(tmXmlDatabase.tmFolders(), "After OWASPinstall, no Folders"); Assert.IsNotEmpty(tmXmlDatabase.tmGuidanceItems(), "After OWASP install, no Articles"); UserRole.None.assert(); }