C# Class BloomTests.Book.BookDataTests

Show file Open project: BloomBooks/BloomDesktop

Private Methods

Method Description
AndikaNewBasicIsInstalled ( ) : bool
AndikaNewBasic_MustBeInstalled ( ) : void
Constructor_CollectionSettingsHasCountrProvinceDistrict_LanguageLocationFilledIn ( ) : void
Constructor_CollectionSettingsHasISO639Code_DataSetContainsProperV ( ) : void
Constructor_CollectionSettingsHasISO639Code_iso639CodeFilledIn ( ) : void
Constructor_CollectionSettingsHasLanguage1Name_LanguagenameOfNationalLanguage1FilledIn ( ) : void
Constructor_CollectionSettingsHasLanguage2Iso639Code_nameOfNationalLanguage1FilledIn ( ) : void
Constructor_CollectionSettingsHasLanguage3Iso639Code_nameOfNationalLanguage2FilledIn ( ) : void
GetMultilingualContentLanguage_ContentLanguageSpecifiedInHtml_ReadsIt ( ) : void
MakeLanguageUploadData_FindsDefaultInfo ( ) : void
MakeLanguageUploadData_FindsOverriddenNames ( ) : void
MigrateData_TopicInTokPisinButNotEnglish_ChangesLangeToEnglish ( ) : void
OneTimeCheckVersionNumber_AndikaNewBasicMigration_DoIt ( ) : void
OneTimeCheckVersionNumber_AndikaNewBasicMigration_alreadyDone ( ) : void
OneTimeCheckVersionNumber_AndikaNewBasicMigration_doneUserReverted ( ) : void
PrettyPrintLanguage_AdjustsKnownLanguages ( ) : void
PrettyPrintLanguage_AdjustsLang1 ( ) : void
PrettyPrintLanguage_DoesNotModifyUnknownCodes ( ) : void
RemoveDataDivVariableForOneLanguage_DoesNotHaveForm_OK ( ) : void
RemoveDataDivVariableForOneLanguage_WasLastForm_WholeElementRemoved ( ) : void
RemoveDataDivVariableForOneLanguage_WasTwoForms_OtherRemains ( ) : void
RemoveSingleForm_HasForm_Removed ( ) : void
SetMultilingualContentLanguage_ContentLanguageSpecifiedInHtml_ReadsIt ( ) : void
SetMultilingualContentLanguages_HasTrilingualLanguages_AddsToDataDiv ( ) : void
SetMultilingualContentLanguages_ThirdContentLangTurnedOff_RemovedFromDataDiv ( ) : void
Set_AddTwoForms_BothAdded ( ) : void
Set_CalledTwiceWithDIfferentLangs_HasBoth ( ) : void
Set_DidHaveForm_StillJustOneCopy ( ) : void
Set_DidNotHaveForm_Added ( ) : void
Set_EmptyString_Removes ( ) : void
Set_Null_Removes ( ) : void
Setup ( ) : void
SuckInDataFromEditedDom_HasDataDivWithOldTitleThenTitleChanged_NewTitleInCache ( ) : void
SuckInDataFromEditedDom_NoDataDIvTitleChanged_NewTitleInCache ( ) : void
SynchronizeDataItemsThroughoutDOM_EditableHasLabelElement_LabelPreserved ( ) : void
SynchronizeDataItemsThroughoutDOM_HasFrenchAndEnglishContributorsInDataDiv_DoesNotCopyEnglishIntoFrenchSlot ( ) : void
SynchronizeDataItemsThroughoutDOM_HasMultipleTopicItems_RemovesAllButEnglish ( ) : void
SynchronizeDataItemsThroughoutDOM_HasOnlyEdoloContributors_CopiesItIntoL2ButNotL1 ( ) : void
SynchronizeDataItemsThroughoutDOM_HasOnlyEnglishContributorsButEnglishIsLang3_CopiesEnglishIntoNationalLanguageSlot ( ) : void
SynchronizeDataItemsThroughoutDOM_HasOnlyEnglishContributorsInDataDivButFrenchInBody_DoesNotCopyEnglishIntoFrenchSlot ( ) : void
SynchronizeDataItemsThroughoutDOM_TopicHasParagraphElement_Removed ( ) : void
SynchronizeDataItemsThroughoutDOM_VariousTopicScenarios ( ) : void
TearDown ( ) : void
TestTopicHandling ( string topicKey, string expectedLanguage, string expectedTranslation, string lang1, string lang2, string lang3, string description ) : void
TextOfInnerHtml_HandlesXmlEscapesCorrectly ( ) : void
TextOfInnerHtml_RemovesMarkup ( ) : void
UpdateFieldsAndVariables_BookTitleInSpanOnSecondPage_UpdatesH2OnFirstWithCurrentNationalLang ( ) : void
UpdateFieldsAndVariables_CustomLibraryVariable_CopiedToOtherElement ( ) : void
UpdateFieldsAndVariables_EnglishDataItemChanges_VernItemsUntouched ( ) : void
UpdateFieldsAndVariables_HasBookTitleTemplateWithVernacularPlaceholder_CreatesTitleForVernacular ( ) : void
UpdateFieldsAndVariables_OneDataItemChanges_ItemsWithThatLanguageAlsoUpdated ( ) : void
UpdateFieldsAndVariables_OneLabelPreserved_DuplicatesRemovedNotAdded ( ) : void
UpdateFieldsAndVariables_VernacularTitleChanged_TitleCopiedToParagraphAnotherPage ( ) : void
UpdateVariablesAndDataDivThroughDOM_DataBookAttributes_AttributesAddedToDiv ( ) : void
UpdateVariablesAndDataDivThroughDOM_DoesNotExist_MakesOne ( ) : void
UpdateVariablesAndDataDivThroughDOM_HasDataLibraryValues_LibraryValuesNotPutInDataDiv ( ) : void
UpdateVariablesAndDataDivThroughDOM_NewLangAdded_AddedToDataDiv ( ) : void
UpdateVariablesAndDataDivThroughDOM_VariableIsNull_DataDivForItRemoved ( ) : void
VerifyLangData ( LanguageDescriptor lang, string code, string name, string ethCode ) : void
WriteSettingsFile ( string filepath, string xmlString ) : void