public void ShouldNotThrowExceptionWhenValid() { var area = new ImagemapArea() { Height = 200, Width = 100 }; area.Validate(); }
public void ShouldThrowExceptionWhenHeightIsZero() { var area = new ImagemapArea() { Width = 100 }; ExceptionAssert.Throws <InvalidOperationException>("The height should be at least 1.", () => { area.Validate(); }); }