Beispiel #1
0
        public void Constructors()
        {
            var widget = new TumblrShareButtonWidget();

            Assert.Equal((byte)TumblrShareButtonType.First, widget.Type());
            Assert.Null(widget.ColorScheme());
        }
Beispiel #2
0
        public void Type_Method()
        {
            var widget = new TumblrShareButtonWidget();

            Assert.Equal((byte)TumblrShareButtonType.First, widget.Type());
            Assert.True(ReferenceEquals(widget.Type(1), widget));
            Assert.Equal(1, widget.Type());
        }
Beispiel #3
0
        public void ColorScheme_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new TumblrShareButtonWidget().ColorScheme(null));
            Assert.Throws <ArgumentException>(() => new TumblrShareButtonWidget().ColorScheme(string.Empty));

            var widget = new TumblrShareButtonWidget();

            Assert.Null(widget.ColorScheme());
            Assert.True(ReferenceEquals(widget.ColorScheme("colorScheme"), widget));
            Assert.Equal("colorScheme", widget.ColorScheme());
        }