Пример #1
0
        public void TestSessionId()
        {
            var sessionId = SessionIdGenerator.GenrateNewSessionId();
            var bytes     = SessionIdGenerator.GetByteSessionId(sessionId);
            var strs      = SessionIdGenerator.GetStringSessionId(bytes);
            var rebyte    = SessionIdGenerator.GetByteSessionId(strs);

            Assert.AreEqual(sessionId, strs);
            Assert.AreEqual(bytes.ToString(), rebyte.ToString());
        }