Esempio n. 1
0
        public void ToString_Always_Succeeds()
        {
            //Arrange
            var propertyInfo = ReflectionHelper.GetMemberInfo<string, int>((string s) => s.Length) as PropertyInfo;

            //Act
            var propertyMap = new PropertyMap(propertyInfo);

            //Assert
            string actual = propertyMap.ToString();
            Assert.AreEqual<string>(string.Format("{{{0}, {1}}}", propertyInfo.Name, propertyInfo.ReflectedType), actual);
        }