public void TestCalculatePath() { var propertyDef = new PropertyDef(typeof(IRootElement).GetProperty(nameof(IRootElement.NonFlagsEnumPropertyA), BindingFlags.Instance | BindingFlags.Public), new ConfigurationObjectSettings()); Assert.Equal(nameof(IRootElement.NonFlagsEnumPropertyA), propertyDef.CalculatePath(null)); var parent = new ConfigurationParentMock(); parent.Path = "TEST"; Assert.Equal("TEST:" + nameof(IRootElement.NonFlagsEnumPropertyA), propertyDef.CalculatePath(parent)); }