public void SetUp() { _transformer = new GuiToRelativeCoordinateTransformer(); _controlMock = MockRepository.GenerateMock<Control>(); _controlMock.Stub(x => x.Width).Return(400); _controlMock.Stub(x => x.Height).Return(300); _transformer.Control = _controlMock; }