コード例 #1
0
        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"));
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        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"));
        }
コード例 #4
0
        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"));
        }