public void AllWrappedMethods_FallThroughToBaseContext() { var mock = new Mock <IVgXmlPropertyContext>(); mock.SetupGet(c => c.Property).Returns(_stringElementProperty); var targetedContext = new VgXmlTargetedPropertyContextWrapper(mock.Object, _testObj); targetedContext.GetOptions(); mock.Verify(c => c.GetOptions()); targetedContext.GetOptions <IVgXmlNameGenerator>(); mock.Verify(c => c.GetOptions <IVgXmlNameGenerator>()); targetedContext.NameMatches("value"); mock.Verify(c => c.NameMatches("value")); targetedContext.GenerateName(_testObj); mock.Verify(c => c.GenerateName(_testObj)); targetedContext.IsCollection(); mock.Verify(c => c.IsCollection()); targetedContext.GetBestMatchingNameFor(_testObj); mock.Verify(c => c.GetBestMatchingNameFor(_testObj)); targetedContext.GetContentFactory(); mock.Verify(c => c.GetContentFactory()); }