public void CanParseGroupAndKey() { PropertyKey key = PropertyKey.Parse("a.b"); Assert.IsNotNull(key); Assert.AreEqual("a", key.Group); Assert.AreEqual("b", key.Key); }
public void CanParseGroupSubGroupKey() { PropertyKey key = PropertyKey.Parse("searchSettings.global.pageSize"); Assert.IsNotNull(key); Assert.AreEqual("searchSettings", key.Group); Assert.AreEqual("global", key.SubGroup); Assert.AreEqual("pageSize", key.Key); }