Example #1
0
        public void StringToGuidTest()
        {
            var guid    = new Guid();
            var guidStr = guid.ToString();

            var guid2 = GuidConv.ToGuid(guidStr);

            Assert.Equal(guid, guid2);
        }
Example #2
0
        public void ConvertFailureTest(object obj)
        {
            var guid = GuidConv.ToGuid(obj);

            Assert.Equal(Guid.Empty, guid);
        }