コード例 #1
0
        public void SupportsParentNames()
        {
            var bob     = CharacterTestTemplates.AverageBob();
            var context = new CharacterContext(bob);

            Assert.Equal("Bob's Father", context.GetValue <string>("character-father-name"));
            Assert.Equal("Bob's Mother", context.GetValue <string>("character-mother-name"));
        }
コード例 #2
0
        public void SupportsPronounsForCharacter()
        {
            var bob     = CharacterTestTemplates.AverageBob();
            var context = new CharacterContext(bob);

            Assert.Equal("he", context.GetValue <string>("pronoun"));
            Assert.Equal("his", context.GetValue <string>("possessivepronoun"));
        }
コード例 #3
0
        public void CanGetTheCharacterSheet()
        {
            var bob     = CharacterTestTemplates.AverageBob();
            var context = new CharacterContext(bob);

            Assert.Equal(bob, context.GetValue <CharacterSheet>("charactersheet"));
        }