public void Xid_TryParse_ReturnsFalseOnEmptyString() { var s = String.Empty; var ok = Xid.TryParse(s, out Xid x); Assert.IsFalse(ok); }
public void Xid_TryParse_ReturnsFalseOnNullString() { string s = null; var ok = Xid.TryParse(s, out Xid x); Assert.IsFalse(ok); }
public void Xid_TryParse_ReturnsFalseWhenStringNotValidXid() { var s = "9m4e2mrZui3e8a215n4g"; var ok = Xid.TryParse(s, out Xid x); Assert.IsFalse(ok); }
public void Xid_TryParse_ReturnsFalseOnLongString() { var s = "9m4e2mr0ui3e8a215n4g9m4e2mr0ui3e8a215n4g"; var ok = Xid.TryParse(s, out Xid x); Assert.IsFalse(ok); }
public void Xid_TryParse_ParsesValidXid() { var s = "9m4e2mr0ui3e8a215n4g"; var ok = Xid.TryParse(s, out Xid x); Assert.IsTrue(ok); Assert.AreEqual(Xid.Parse(s), x); }