Baseline.Testing.Reflection.ArrayIndexerTester.DeclaringType_of_a_array_is_the_array_type C# (CSharp) Method

DeclaringType_of_a_array_is_the_array_type() private method

private DeclaringType_of_a_array_is_the_array_type ( ) : void
return void
        public void DeclaringType_of_a_array_is_the_array_type()
        {
            var accessor = ReflectionHelper.GetAccessor<ArrayTarget[]>(x => x[1]);
            accessor.ShouldBeOfType<ArrayIndexer>();
            accessor.OwnerType.ShouldBe(typeof (ArrayTarget[]));
            accessor.DeclaringType.ShouldBe(typeof (ArrayTarget[]));
            accessor.FieldName.ShouldBe("[1]");
            accessor.InnerProperty.ShouldBeNull();
            accessor.PropertyNames.ShouldContain("[1]");
            accessor.PropertyType.ShouldBe(typeof (ArrayTarget));
        }