Permalink
Browse files

Added test to ensure immediate property from indexer expression resol…

…ves owner type correctly.
  • Loading branch information...
emiaj committed Feb 19, 2013
1 parent c635657 commit 30a8320ab81892e465ed90a843a8886025e4be76
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/FubuCore.Testing/Reflection/ReflectionHelperTester.cs
@@ -320,9 +320,10 @@ public void get_value_by_indexer_when_the_indexer_is_variable_reference_of_a_com
public void get_owner_type_by_indexer()
{
var accessor = ReflectionHelper.GetAccessor<Target>(x => x.Child.Grandchildren[1].Deep.Color);
- accessor.OwnerType.ShouldEqual(typeof (DeepTarget));
+ accessor.OwnerType.ShouldEqual(typeof(DeepTarget));
ReflectionHelper.GetAccessor<Target>(x => x.Child.Grandchildren[1]).OwnerType.ShouldEqual(typeof(ChildTarget));
+ ReflectionHelper.GetAccessor<Target>(x => x.Child.Grandchildren[1].Name).OwnerType.ShouldEqual(typeof(GrandChildTarget));
}
[Test]

0 comments on commit 30a8320

Please sign in to comment.