public void Parse_Exception() { // arrange var serializer = new UUIDSerializer(); // assert Assert.Throws <GraphQLClientException>(() => serializer.Parse(string.Empty)); }
public void Format(string format) { // arrange var serializer = new UUIDSerializer(format: format); var guid = Guid.NewGuid(); // act var result = serializer.Format(guid); // assert Assert.Equal(guid.ToString(format), result); }
public void Parse_Different_Formats(string format) { // arrange var serializer = new UUIDSerializer(); var guid = Guid.NewGuid(); // act Guid result = serializer.Parse(guid.ToString(format)); // assert Assert.Equal(guid, result); }