//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void throwWhenVersionIsOlderAndUpgradeIsNotAllowed()
        public virtual void ThrowWhenVersionIsOlderAndUpgradeIsNotAllowed()
        {
            when(_tailScanner.TailInformation).thenReturn(new OnlyVersionTailInformation(LogEntryVersion.V2_3));

            Expect.expect(typeof(UpgradeNotAllowedByConfigurationException));

            LogVersionUpgradeChecker.Check(_tailScanner, Config.defaults(GraphDatabaseSettings.allow_upgrade, "false"));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void acceptOlderLogsWhenUpgradeIsAllowed()
        public virtual void AcceptOlderLogsWhenUpgradeIsAllowed()
        {
            when(_tailScanner.TailInformation).thenReturn(new OnlyVersionTailInformation(LogEntryVersion.V2_3));

            LogVersionUpgradeChecker.Check(_tailScanner, Config.defaults(GraphDatabaseSettings.allow_upgrade, "true"));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void noThrowWhenLatestVersionAndUpgradeIsNotAllowed()
        public virtual void NoThrowWhenLatestVersionAndUpgradeIsNotAllowed()
        {
            when(_tailScanner.TailInformation).thenReturn(new OnlyVersionTailInformation(LogEntryVersion.CURRENT));

            LogVersionUpgradeChecker.Check(_tailScanner, Config.defaults(GraphDatabaseSettings.allow_upgrade, "false"));
        }