public virtual void UnknownRepositoryFormatVersion() { FileRepository r = CreateWorkRepository(); FileBasedConfig config = ((FileBasedConfig)r.GetConfig()); config.SetLong(ConfigConstants.CONFIG_CORE_SECTION, null, ConfigConstants.CONFIG_KEY_REPO_FORMAT_VERSION , 1); config.Save(); try { new FileRepository(r.Directory); NUnit.Framework.Assert.Fail("IOException not thrown"); } catch (IOException e) { NUnit.Framework.Assert.IsNotNull(e.Message); } }