Example #1
0
 public void ShouldResolvePublicInstanceProperty()
 {
     TheResolvedMembers
     .ShouldContain(m => m.Name == "StubInstanceProperty")
     .MemberType
     .ShouldBe(MemberTypes.Property);
 }
Example #2
0
 public void ShouldFilterOutBackingAndStaticMembers()
 {
     TheResolvedMembers
     .ShouldNotContain(m => m.Name == "get_StubStaticProperty")
     .ShouldNotContain(m => m.Name == "StubStaticProperty")
     .ShouldNotContain(m => m.Name == "StubStaticMethod");
 }
Example #3
0
 public void ShouldResolvePublicInstanceMethod()
 {
     TheResolvedMembers
     .ShouldContain(m => m.Name == "StubInstanceMethod")
     .MemberType
     .ShouldBe(MemberTypes.Method);
 }
Example #4
0
 public void ShouldResolvePublicStaticField()
 {
     TheResolvedMembers
     .ShouldContain(m => m.Name == "StubStaticField")
     .MemberType
     .ShouldBe(MemberTypes.Field);
 }