public void Test_All_Paths_Are_Set() { InitGoodXmlDoc(); var value = doc.GetValueOf("pubKeyFile"); Assert.AreEqual(value, ""); }
private void Init() { doc = new XMLDoc(AppConstants.SETTINGS_FILE_NAME); txtEncDir.Text = doc.GetValueOf(AppConstants.ENC_DIR); txtDecDir.Text = doc.GetValueOf(AppConstants.DEC_DIR); txtPubKeyDir.Text = doc.GetValueOf(AppConstants.PUBKEY_FILE); }
private void SetFoldersPaths() { XMLDoc doc = new XMLDoc(AppConstants.SETTINGS_FILE_NAME); encrFolder = doc.GetValueOf(AppConstants.ENC_DIR).AppendSlash(); decrFolder = doc.GetValueOf(AppConstants.DEC_DIR).AppendSlash(); pubKeyFile = doc.GetValueOf(AppConstants.PUBKEY_FILE); DisableIfPathsNotSet(); }