Exemplo n.º 1
0
        public void PutTest()
        {
            // Arrange
            var    controller = new RoverController();
            string base64     = "iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABHNCSVQICAgIfAhkiAAABKdJREFUeJzt18Gt01AQQFEH/XZSDQ2lx6GfxwIhgvQRAQTmPp+zSeRkMbO5Gt9mZh0ABVcK1sws++7LvnubmfXh7CEAXiVYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQcTuOY509xL80M2ePAPymy11Y9/v97BGAP3ClC2sdF9p3ZtbM2HdTV9z3chcW0CVYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWEDG2/ryub4+uB3H7axh/orHt92Ox7vP9toXNubCAjIEC8i4rafXwePY7X3wBx7fvs7HOW8O4Jdc78J6/PwvwP/pvQtrryPr8f1+7/y+175PZmYdx3Hc7/dtd3xm373NzLrehQVkCRaQ8fZpZu+T8umV72onNOzGhQVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkHGbmXX2EACvcGEBHVe6sGZm2Xdf9t3bzCwXFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkHGbmXX2EACvcGEBHVe6sGZm2Xdf9t3bzCwXFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkHGbmXX2EACv+Axn2b10aWjoEgAAAABJRU5ErkJggg==";

            // Act
            controller.Put(new CommandBody {
                Command = base64
            });

            // Assert
            Assert.IsNotNull(RoverController.LastImage);
        }