public void Accepts_Receiver_argument()
 {
     var anySize = new Size(0, 0);
     var mockLandingSurface = new Mock<ILandingSurface>();
     var landingSurfaceSizeCommand = new LandingSurfaceSizeCommand(anySize);
     Assert.DoesNotThrow(() =>
         landingSurfaceSizeCommand.SetReceiver(mockLandingSurface.Object));
 }
            public void Sets_LandingSurface_size()
            {
                var mockLandingSurface = new Mock<ILandingSurface>();
                var anySize = new Size(0, 0);
                var landingSurfaceSizeCommand = new LandingSurfaceSizeCommand(anySize);
                landingSurfaceSizeCommand.SetReceiver(mockLandingSurface.Object);

                landingSurfaceSizeCommand.Execute();

                mockLandingSurface.Verify(x => x.SetSize(anySize), Times.Once());
            }
 public void Returns_LandingSurfaceSizeCommand_type()
 {
     var size = new Size(0, 0);
     var landingSurfaceSizeCommand = new LandingSurfaceSizeCommand(size);
     Assert.AreEqual(landingSurfaceSizeCommand.GetCommandType(), CommandType.LandingSurfaceSizeCommand);
 }
 public void Given_a_size_argument_exposes_as_public_property()
 {
     var size = new Size(1, 2);
     var landingSurfaceSizeCommand = new LandingSurfaceSizeCommand(size);
     Assert.AreEqual(size, landingSurfaceSizeCommand.Size);
 }