public void TestTryAssignAndIsCorrect() { UUID outputUUID; Assert.AreEqual(false, UUID.TryParse("123-45678-90AB-CDEF-1011-121314151617", out outputUUID)); Assert.AreEqual(false, UUID.IsValid("123-45678-90AB-CDEF-1011-121314151617")); Assert.AreEqual(false, UUID.TryParse("12345678-90ab-cdef-1011-12131415161", out outputUUID)); Assert.AreEqual(false, UUID.IsValid("12345678-90ab-cdef-1011-12131415161")); Assert.AreEqual(true, UUID.TryParse("12345678-90ab-cdef-1011-121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("12345678-90ab-cdef-1011-121314151617")); Assert.AreEqual(true, UUID.TryParse("12345678-90AB-CDEF-1011-121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("12345678-90AB-CDEF-1011-121314151617")); Assert.AreEqual(true, UUID.TryParse("12345678-90Ab-CdEf-1011-121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("12345678-90Ab-CdEf-1011-121314151617")); Assert.AreEqual(true, UUID.TryParse("1234567890abcdef1011121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("1234567890abcdef1011121314151617")); Assert.AreEqual(true, UUID.TryParse("1234567890ABCDEF1011121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("1234567890ABCDEF1011121314151617")); Assert.AreEqual(true, UUID.TryParse("1234567890AbCdEf1011121314151617", out outputUUID)); Assert.AreEqual(true, UUID.IsValid("1234567890AbCdEf1011121314151617")); }