public void Width_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new RuTubeVideoWidget().Width(null));
      Assert.Throws<ArgumentException>(() => new RuTubeVideoWidget().Width(string.Empty));

      var widget = new RuTubeVideoWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
Exemplo n.º 2
0
        public void Width_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new RuTubeVideoWidget().Width(null));
            Assert.Throws <ArgumentException>(() => new RuTubeVideoWidget().Width(string.Empty));

            var widget = new RuTubeVideoWidget();

            Assert.Null(widget.Width());
            Assert.True(ReferenceEquals(widget.Width("width"), widget));
            Assert.Equal("width", widget.Width());
        }
 public void Constructors()
 {
   var widget = new RuTubeVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
 }
Exemplo n.º 4
0
        public void Constructors()
        {
            var widget = new RuTubeVideoWidget();

            Assert.Null(widget.Id());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
        }