public void WalkShouldReturnTheExpectedDistanceWithCorrectUnit()
        {
            string expectedDistanceWithUnit = "10m";
            string inputDistance            = "10";

            var conversationHandler = new Mock <IConversationHandler>();

            var    roboService         = new RoboService(conversationHandler.Object);
            string robotName           = "Robi";
            var    talkedRobotDistance = roboService.Walk(robotName, inputDistance);

            Assert.AreEqual(expectedDistanceWithUnit, talkedRobotDistance);
        }
Beispiel #2
0
 private void frmRobo_Load(object sender, EventArgs e)
 {
     roboService = new RoboService(new ProdutoRep(), new Logger(ref gridContainer));
 }