/// <summary> /// Clears all information from the internal versification for testing on a clean slate /// </summary> public static void ClearAllInfo(this ScrVers scrVers) { Versification internalVers = (Versification)ReflectionHelper.GetProperty(scrVers, "VersInfo"); ((List <int[]>)ReflectionHelper.GetField(internalVers, "bookList")).Clear(); scrVers.ClearExcludedVerses(); ((Dictionary <int, string[]>)ReflectionHelper.GetField(internalVers, "verseSegments")).Clear(); object mappings = ReflectionHelper.GetField(internalVers, "mappings"); ReflectionHelper.CallMethodWithThrow(mappings, "Clear"); }