Ejemplo n.º 1
0
        public void captain_should_sail_boat()
        {
            var mockLogger = new Mock <ILogger>();
            var captain    = new Captain(new FishingBoatAdaptor(mockLogger.Object));

            captain.Row();

            mockLogger.Verify(logger => logger.Info("Fishing boat sails"));
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var captain = new Captain(new FishingBoatAdapter());

            captain.Row();
        }