public void ShouldNotThrowExceptionWhenValid()
            {
                var action = new ImagemapUriAction()
                {
                    Area = new ImagemapArea(1, 2, 3, 4),
                    Url  = new Uri("http://foo.bar")
                };

                action.Validate();
            }
            public void ShouldThrowExceptionWhenAreaIsNull()
            {
                var action = new ImagemapUriAction()
                {
                    Url = new Uri("http://foo.bar")
                };

                ExceptionAssert.Throws <InvalidOperationException>("The area cannot be null.", () =>
                {
                    action.Validate();
                });
            }
            public void ShouldThrowExceptionWhenUrlIsNull()
            {
                var action = new ImagemapUriAction()
                {
                    Area = new ImagemapArea(1, 2, 3, 4)
                };

                ExceptionAssert.Throws <InvalidOperationException>("The url cannot be null.", () =>
                {
                    action.Validate();
                });
            }