public void NewGEIDFromString()
        {
            var    geid    = new EncryptId(123);
            string strGEID = geid.ToString();

            var impGEID = new EncryptId(strGEID);

            Assert.AreEqual(strGEID, impGEID.ToString());
            Assert.AreEqual(strGEID, impGEID.ToString());
        }
        public void NewGEIDFromString()
        {
            var geid = new EncryptId(123);
            string strGEID = geid.ToString();

            var impGEID = new EncryptId(strGEID);

            Assert.AreEqual(strGEID, impGEID.ToString());
            Assert.AreEqual(strGEID, impGEID.ToString());
        }
        public void Inequality()
        {
            var geid1 = new EncryptId(123);
            var geid2 = new EncryptId(321);
            var geid3 = new EncryptId(123);

            Assert.IsTrue(geid1 != geid2);
            Assert.IsTrue(geid1.ToString() != geid2.ToString());
            Assert.IsTrue(geid1 != geid2.ToString());
            Assert.IsTrue(geid1.ToString() != geid2);

            Assert.IsFalse(geid1 != geid3);
            Assert.IsFalse(geid1.ToString() != geid3.ToString());
            Assert.IsFalse(geid1 != geid3.ToString());
            Assert.IsFalse(geid1.ToString() != geid3);
        }
        public void Inequality()
        {
            var geid1 = new EncryptId(123);
            var geid2 = new EncryptId(321);
            var geid3 = new EncryptId(123);

            Assert.IsTrue(geid1 != geid2);
            Assert.IsTrue(geid1.ToString() != geid2.ToString());
            Assert.IsTrue(geid1 != geid2.ToString());
            Assert.IsTrue(geid1.ToString() != geid2);

            Assert.IsFalse(geid1 != geid3);
            Assert.IsFalse(geid1.ToString() != geid3.ToString());
            Assert.IsFalse(geid1 != geid3.ToString());
            Assert.IsFalse(geid1.ToString() != geid3);
        }
        public void Equality()
        {
            EncryptId geid1 = new EncryptId(123);
            EncryptId geid2 = new EncryptId(123);
            EncryptId geid3 = new EncryptId(321);

            Assert.IsTrue(geid1 == geid2);
            Assert.IsTrue(geid1.ToString() == geid2.ToString());
            Assert.IsTrue(geid1 == geid2.ToString());
            Assert.IsTrue(geid1.ToString() == geid2);

            Assert.IsFalse(geid1 == geid3);
            Assert.IsFalse(geid1.ToString() == geid3.ToString());
            Assert.IsFalse(geid1 == geid3.ToString());
            Assert.IsFalse(geid1.ToString() == geid3);
        }
        public void TryParseValid()
        {
            var geid    = new EncryptId(123);
            var strGEID = geid.ToString();

            EncryptId tryGEID;

            Assert.IsTrue(EncryptId.TryParse(strGEID, out tryGEID));
            Assert.AreEqual(geid, tryGEID);
        }
        public void TryParseValid()
        {
            var geid = new EncryptId(123);
            var strGEID = geid.ToString();

            EncryptId tryGEID;
            Assert.IsTrue(EncryptId.TryParse(strGEID, out tryGEID));
            Assert.AreEqual(geid, tryGEID);
        }