예제 #1
0
        public void LongGuid_Constructor_String()
        {
            // Assign
            var longGuid = new LongGuid("10000000-0000-0000-0000-000000000001-20000000-0000-0000-0000-000000000002-30000000-0000-0000-0000-000000000003-40000000-0000-0000-0000-000000000004");

            // Act
            string result = longGuid.ToString();

            // Assert
            Check.That(result).Equals("10000000-0000-0000-0000-000000000001-20000000-0000-0000-0000-000000000002-30000000-0000-0000-0000-000000000003-40000000-0000-0000-0000-000000000004");
        }
예제 #2
0
        public void LongGuid_Constructor_ToString()
        {
            // Assign
            var longGuid = new LongGuid();

            // Act
            string result = longGuid.ToString();

            // Assert
            Check.That(result).Equals("00000000-0000-0000-0000-000000000000-00000000-0000-0000-0000-000000000000-00000000-0000-0000-0000-000000000000-00000000-0000-0000-0000-000000000000");
        }
예제 #3
0
        public void LongGuid_Constructor_WithGuids_ToString()
        {
            // Assign
            var guid1    = Guid.Parse("10000000-0000-0000-0000-000000000001");
            var guid2    = Guid.Parse("20000000-0000-0000-0000-000000000002");
            var guid3    = Guid.Parse("30000000-0000-0000-0000-000000000003");
            var guid4    = Guid.Parse("40000000-0000-0000-0000-000000000004");
            var longGuid = new LongGuid(guid1, guid2, guid3, guid4);

            // Act
            string result = longGuid.ToString();

            // Assert
            Check.That(result).Equals("10000000-0000-0000-0000-000000000001-20000000-0000-0000-0000-000000000002-30000000-0000-0000-0000-000000000003-40000000-0000-0000-0000-000000000004");
        }