public void SupportGuidString()
        {
            string guidString = Guid.NewGuid().ToString();
            IInfoStringConverter converter = new JsonInfoStringConverter();
            var infoItems = converter.ToDataItems(guidString);

            Assert.IsTrue(string.CompareOrdinal(guidString, infoItems.First().Value) == 0);

            guidString = Guid.NewGuid().ToString();
            converter  = new XmlInfoStringConverter();
            infoItems  = converter.ToDataItems(guidString);

            Assert.IsTrue(string.CompareOrdinal(guidString, infoItems.First().Value) == 0);
        }
Ejemplo n.º 2
0
        public void SupportGuidString()
        {
            string guidString = Guid.NewGuid().ToString();
            IInfoStringConverter converter = new JsonInfoStringConverter();
            var infoItems = converter.ToDataItems(guidString);

            Assert.IsTrue(string.CompareOrdinal(guidString, infoItems.First().Value) == 0);

            guidString = Guid.NewGuid().ToString();
            converter = new XmlInfoStringConverter();
            infoItems = converter.ToDataItems(guidString);

            Assert.IsTrue(string.CompareOrdinal(guidString, infoItems.First().Value) == 0);
        }