public void Normal() { var result = TypeInfoResolver.ResolveTypeInfo(typeof(TestModel1)); result.Should().NotBeNull(); result.Type.Should().Be(typeof(TestModel1)); result.IsArray.Should().Be(false); result.IsWrapper.Should().Be(false); }
public void ArrayAndWrapper() { var model = new[] { new AugmenterWrapper <TestModel1>(new TestModel1()), new AugmenterWrapper <TestModel1>(new TestModel1()) }; var result = TypeInfoResolver.ResolveTypeInfo(model.GetType()); result.Should().NotBeNull(); result.Type.Should().Be(typeof(TestModel1)); result.IsArray.Should().Be(true); result.IsWrapper.Should().Be(true); }
public void Primitive() { var result = TypeInfoResolver.ResolveTypeInfo(typeof(int)); result.IsPrimitive.Should().BeTrue(); }