Пример #1
0
        public void CreateIdentifierFromString()
        {
            var guidValue = Guid.NewGuid().ToString();

            var id = new Identifier(guidValue);
            Assert.IsNotNull(id);
            Assert.IsNotNullOrEmpty(id.ToString());

            // make sure the string value of the identifier is the same as the guid's string value
            Assert.AreEqual(id.ToString(), guidValue);
            Debug.WriteLine("{0} == {1}", id.ToString(), guidValue);
        }
Пример #2
0
 public void CreateNewIdentifier()
 {
     var id = new Identifier();
     Assert.IsNotNull(id);
     Assert.IsNotNullOrEmpty(id.ToString());
 }