public void GetPairs_Invalid() { var gidParser = new GidParser(); var fragments = gidParser.GetPairs("id://value"); Assert.Null(fragments); }
public void GetPairs_Valid() { var gidParser = new GidParser(); var fragments = gidParser.GetPairs("gid://key/value/1"); Assert.NotNull(fragments); Assert.Equal(2, fragments.Count); Assert.Equal("key", fragments[0].Key); Assert.Equal("value", fragments[0].Value); Assert.Equal("1", fragments[1].Key); Assert.Null(fragments[1].Value); }