public void LogWhenNonProxableMemberNotification() { var alternateImplementations = Enumerable.Empty <IAlternateMethod>(); var loggerMock = new Mock <ILogger>(); var hook = new AlternateTypeGenerationHook <ITab>(alternateImplementations, loggerMock.Object); var type = typeof(AlternateTypeGenerationHookShould); var memberInfo = type.GetMember("LogWhenNonProxableMemberNotification")[0]; hook.NonProxyableMemberNotification(type, memberInfo); loggerMock.Verify(l => l.Debug(It.IsAny <string>(), memberInfo.Name, type), Times.Once()); }
public void LogWhenNonProxableMemberNotification() { var alternateImplementations = Enumerable.Empty<IAlternateMethod>(); var loggerMock = new Mock<ILogger>(); var hook = new AlternateTypeGenerationHook<ITab>(alternateImplementations, loggerMock.Object); var type = typeof (AlternateTypeGenerationHookShould); var memberInfo = type.GetMember("LogWhenNonProxableMemberNotification")[0]; hook.NonProxyableMemberNotification(type, memberInfo); loggerMock.Verify(l => l.Debug(It.IsAny<string>(), memberInfo.Name, type), Times.Once()); }