public void TestCreateUuidV3() { var uid = QUuid.CreateUuidV3(_uuidNs, new QByteArray("www.widgets.com")); Assert.AreEqual(_uuidC, uid); var uid2 = QUuid.CreateUuidV3(_uuidNs, "www.widgets.com"); Assert.AreEqual(_uuidC, uid2); }
public void TestCreateUuidV5() { var s = _uuidD; var uid = QUuid.CreateUuidV3(_uuidNs, new QByteArray("www.widgets.com")); Assert.AreEqual(_uuidD, uid); //throw new AssertionException("string para not implemented!"); var uid2 = QUuid.CreateUuidV3(_uuidNs, "www.widgets.com"); Assert.AreEqual(_uuidD, uid2); }
public void TestCreateUuidV3() { using (var uid = QUuid.CreateUuidV3(this.uuidNs, new QByteArray("www.widgets.com"))) { Assert.AreEqual(this.uuidC, uid); } using (var uid2 = QUuid.CreateUuidV3(this.uuidNs, "www.widgets.com")) { Assert.AreEqual(this.uuidC, uid2); } }