コード例 #1
0
        public void ExtractLsnFromSessionToken_ShouldParseNewSessionTokenWithMultipleRegionalLsn()
        {
            string newTokenWithRegionalLsn = "0:-1#12345#Region1=1#Region2=2";
            string expectedLsn             = "12345";

            Assert.AreEqual(expectedLsn, RemainingWorkEstimatorCore.ExtractLsnFromSessionToken(newTokenWithRegionalLsn));
        }
コード例 #2
0
        public void ExtractLsnFromSessionToken_ShouldParseNewSessionToken()
        {
            string newToken    = "0:-1#12345";
            string expectedLsn = "12345";

            Assert.AreEqual(expectedLsn, RemainingWorkEstimatorCore.ExtractLsnFromSessionToken(newToken));
        }