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

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

            var widget = new RuTubeVideoWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
 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());
        }