Ejemplo n.º 1
0
        public void Image_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IPinterestProfileWidgetExtensions.Image(null, 0));

            new PinterestProfileWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.Image(1), widget));
                Assert.Equal("1", widget.Image());
            });
        }
Ejemplo n.º 2
0
        public void Square_Method()
        {
            Assert.Throws <ArgumentNullException>(() => IPinterestProfileWidgetExtensions.Square(null));

            new PinterestProfileWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.Square(), widget));
                Assert.Equal("80", widget.Image());
                Assert.Equal("320", widget.Height());
                Assert.Equal("400", widget.Width());
            });
        }