public void TryParseNotValid() { var strGEID = "SomeBadValue"; EncryptId tryGEID; Assert.IsFalse(EncryptId.TryParse(strGEID, out 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); }