コード例 #1
0
//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"));
        }
コード例 #2
0
//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"));
        }
コード例 #3
0
//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"));
        }