[Test] public void Confirm_That_Default_SiteData_Is_Set() { tmServer.siteData_Config().assert_Not_Null() .Name.assert_Is("Site_Data"); tmFileStorage.path_SiteData().assert_Not_Null() .assert_Folder_Exists(); }
[Test] public void setDefaultData() { var tmServer = new TM_Server(); tmServer.setDefaultData(); Assert.IsNotEmpty(tmServer.UserData_Configs); Assert.IsNotEmpty(tmServer.SiteData_Configs); Assert.AreEqual(1, tmServer.UserData_Configs.size()); Assert.AreEqual(1, tmServer.SiteData_Configs.size()); var userData = tmServer.userData_Config(); Assert.AreEqual(userData.Name, TMConsts.TM_SERVER_DEFAULT_NAME_USERDATA); Assert.AreEqual(userData.Active, true); // Assert.AreEqual(userData.Use_FileSystem , false); // Assert.AreEqual(userData.Enable_Git_Support , false); var siteData = tmServer.siteData_Config(); Assert.AreEqual(siteData.Name, TMConsts.TM_SERVER_DEFAULT_NAME_SITEDATA); Assert.AreEqual(siteData.Active, true); // Assert.AreEqual(siteData.Use_FileSystem , false); // Assert.AreEqual(siteData.Enable_Git_Support , false); }