public void TagShouldReturnDescriptionKey() { var key = new ResourceKeyStack(bundle); key = key.BranchFor(new Core()); var tagDict = new Dictionary <int, TagDocumentation>(); var tag = new TagDocumentation(key, new Out(), new List <Func <ITag, TagDocumentation, bool> >(), tagDict); Assert.That(tag.DescriptionKey, Is.EqualTo("description_Core_Out")); }
public void PropertyShouldReturnDescriptionKeyOfDeclaringType() { ResourceKeyStack key = new ResourceKeyStack(bundle); key = key.BranchFor(new Core()); key = key.BranchFor(new Set()); var property = new PropertyDocumentation(key, typeof(Set).GetProperty("Var")); Assert.That(property.DescriptionKey, Is.EqualTo("description_BaseCoreTagWithVariable_Var")); }
public void PropertyShouldReturnDescriptionKey() { var key = new ResourceKeyStack(bundle); key = key.BranchFor(new Core()); key = key.BranchFor(new Out()); var property = new PropertyDocumentation(key, typeof(Out).GetProperty("Value")); Assert.That(property.DescriptionKey, Is.EqualTo("description_Core_Out_Value")); }
public void PropertyShouldReturnDescriptionKeyOfDeclaringGroup() { var key = new ResourceKeyStack(bundle); key = key.BranchFor(new Format()); key = key.BranchFor(new Message()); var property = new PropertyDocumentation(key, typeof(Message).GetProperty("Scope")); Assert.That(property.DescriptionKey, Is.EqualTo("description_BaseCoreTagWithOptionalVariable_Scope")); }