using System; using IBatisNet.Common.Utilities.Objects; using NUnit.Framework; using IBatisNet.Common.Test.Domain; namespace IBatisNet.Common.Test.NUnit.CommonTests.Utilities { /// /// Summary description for ReflectionInfoTest. /// [TestFixture] public class ReflectionInfoTest { /// /// Test multiple call to factory /// [Test] public void TestReflectionInfo() { ReflectionInfo info = ReflectionInfo.GetInstance(typeof (Document)); Type type = info.GetGetterType("PageNumber"); } /// /// Test Finding properties on interfaces which "inherites" other interfaces /// [Test] public void TestJIRA210OnGet() { ReflectionInfo info = ReflectionInfo.GetInstance(typeof(IAddress)); Type type = info.GetGetterType("Id"); Assert.IsNotNull(type); } /// /// Test Finding properties on interfaces which "inherites" other interfaces /// [Test] public void TestJIRA210OnSet() { ReflectionInfo info = ReflectionInfo.GetInstance(typeof(IAddress)); Type type = info.GetSetterType("Id"); Assert.IsNotNull(type); } } }