public void Given_Logger_AddLogger_Should_Return_Instance() { var logger = new Mock <ILogger>(); var function = new FakeFunctionWithILogger() .AddLogger(logger.Object); var result = function.Log; result.Should().BeAssignableTo <ILogger>(); }
public void Given_ILogger_Property_ShouldNotThrow_Exception() { var logger = new Mock <ILogger>(); var function = new FakeFunctionWithILogger() { Log = logger.Object }; function.Log.Should().BeAssignableTo <ILogger>(); }