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

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

            var widget = new VideoJSPlayerWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
 public void Constructors()
 {
   var widget = new VideoJSPlayerWidget();
   Assert.Null(widget.Extra());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.False(widget.Videos().Any());
 }
Exemple #4
0
        public void Constructors()
        {
            var widget = new VideoJSPlayerWidget();

            Assert.Null(widget.Extra());
            Assert.Null(widget.Width());
            Assert.Null(widget.Height());
            Assert.False(widget.Videos().Any());
        }