public void Constructors()
 {
   var widget = new FacebookVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
 }
Example #2
0
        public void Constructors()
        {
            var widget = new FacebookVideoWidget();

            Assert.Null(widget.Id());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
        }
    public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookVideoWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new FacebookVideoWidget().Height(string.Empty));

      var widget = new FacebookVideoWidget();
      Assert.Null(widget.Height());
      Assert.True(ReferenceEquals(widget.Height("height"), widget));
      Assert.Equal("height", widget.Height());
    }
    public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookVideoWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new FacebookVideoWidget().Width(string.Empty));

      var widget = new FacebookVideoWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
Example #5
0
        public void Height_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookVideoWidget().Height(null));
            Assert.Throws <ArgumentException>(() => new FacebookVideoWidget().Height(string.Empty));

            var widget = new FacebookVideoWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
Example #6
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new FacebookVideoWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new FacebookVideoWidget().Width(string.Empty));

            var widget = new FacebookVideoWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }