public int CheckCaller(FakeRobotController obj)
 {
     if (obj.Check())
     {
         return(1);
     }
     return(0);
 }
Пример #2
0
        //Testing a FakeRobotController Action
        public void TestFakeRobotAction()
        {
            var fakeCon = new FakeRobotController();

            byte[] byte1, byte2;
            byte1 = fakeCon.Robot("Forward");
            byte2 = Encoding.ASCII.GetBytes("1");
            bool bothEqual = Enumerable.SequenceEqual(byte1, byte2);

            Assert.True(bothEqual);
        }