Beispiel #1
0
            public void ShouldNotThrowExceptionWhenValid()
            {
                var area = new ImagemapArea()
                {
                    Height = 200,
                    Width  = 100
                };

                area.Validate();
            }
Beispiel #2
0
            public void ShouldThrowExceptionWhenHeightIsZero()
            {
                var area = new ImagemapArea()
                {
                    Width = 100
                };

                ExceptionAssert.Throws <InvalidOperationException>("The height should be at least 1.", () =>
                {
                    area.Validate();
                });
            }