Esempio n. 1
0
 public GuidStronglyTypedIdTestData(GuidStronglyTypedId instanceTestData, string serializedTestData)
 {
     InstanceTestData   = instanceTestData;
     SerializedTestData = serializedTestData ?? throw new ArgumentNullException(nameof(serializedTestData));
 }
        public void GuidIdToStringTest()
        {
            var guidStronglyTypedId = new GuidStronglyTypedId();

            guidStronglyTypedId.ToString().Should().MatchRegex("^[0-9A-Fa-f]{8}-?([0-9A-Fa-f]{4}-?){3}[0-9A-Fa-f]{12}$");
        }