public void LogWhenMethodsInspected() { var alternateImplementations = Enumerable.Empty <IAlternateMethod>(); var loggerMock = new Mock <ILogger>(); var hook = new AlternateTypeGenerationHook <ITab>(alternateImplementations, loggerMock.Object); hook.MethodsInspected(); loggerMock.Verify(l => l.Debug(It.IsAny <string>(), It.IsAny <Type>()), Times.Once()); }
public void LogWhenMethodsInspected() { var alternateImplementations = Enumerable.Empty<IAlternateMethod>(); var loggerMock = new Mock<ILogger>(); var hook = new AlternateTypeGenerationHook<ITab>(alternateImplementations, loggerMock.Object); hook.MethodsInspected(); loggerMock.Verify(l=>l.Debug(It.IsAny<string>(), It.IsAny<Type>()), Times.Once()); }