コード例 #1
0
 public void ThrowsExeptionTryingToGetKeyOfAPropertyWithNoFieldNameAttributeInChain()
 {
     var father = new Father();
     father.GetKey(f => f.Son.Age);
 }
コード例 #2
0
 public void GetsSingleChainWithInterface()
 {
     var father = new Father();
     Assert.AreEqual("daughter.name", father.GetKey(f => f.Daughter.Name));
 }
コード例 #3
0
 public void GetsSingleKey()
 {
     var father = new Father();
     Assert.AreEqual("name", father.GetKey(f => f.Name));
 }
コード例 #4
0
 public void GetsListKey()
 {
     var father = new Father();
     Assert.AreEqual("children", father.GetKey(f => f.Children));
 }
コード例 #5
0
 public void GetsSingleChain()
 {
     var father = new Father();
     Assert.AreEqual("son.name", father.GetKey(f => f.Son.Name));
 }
コード例 #6
0
 public void GetsChainedKeyFollowingList()
 {
     var father = new Father();
     Assert.AreEqual("children.sister.name", father.GetKey(f => f.Children[0].Sister.Name));
 }
コード例 #7
0
 public void GetsComplexChain()
 {
     var father = new Father();
     Assert.AreEqual("daughter.sister.sister.sister.name", father.GetKey(f => f.Daughter.Sister.Sister.Sister.Name));
 }
コード例 #8
0
        public void GetsListKey()
        {
            var father = new Father();

            Assert.AreEqual("children", father.GetKey(f => f.Children));
        }
コード例 #9
0
        public void GetsChainedKeyFollowingList()
        {
            var father = new Father();

            Assert.AreEqual("children.sister.name", father.GetKey(f => f.Children[0].Sister.Name));
        }
コード例 #10
0
        public void GetsComplexChain()
        {
            var father = new Father();

            Assert.AreEqual("daughter.sister.sister.sister.name", father.GetKey(f => f.Daughter.Sister.Sister.Sister.Name));
        }
コード例 #11
0
        public void ThrowsExeptionTryingToGetKeyOfAPropertyWithNoFieldNameAttributeInChain()
        {
            var father = new Father();

            father.GetKey(f => f.Son.Age);
        }
コード例 #12
0
        public void GetsSingleChainWithInterface()
        {
            var father = new Father();

            Assert.AreEqual("daughter.name", father.GetKey(f => f.Daughter.Name));
        }
コード例 #13
0
        public void GetsSingleChain()
        {
            var father = new Father();

            Assert.AreEqual("son.name", father.GetKey(f => f.Son.Name));
        }
コード例 #14
0
        public void GetsSingleKey()
        {
            var father = new Father();

            Assert.AreEqual("name", father.GetKey(f => f.Name));
        }