public void PrivateMode_Method()
 {
   var widget = new YouTubeVideoWidget();
   Assert.False(widget.PrivateMode());
   Assert.True(ReferenceEquals(widget.PrivateMode(true), widget));
   Assert.True(widget.PrivateMode());
 }
        public void SecureMode_Method()
        {
            var widget = new YouTubeVideoWidget();

            Assert.False(widget.SecureMode());
            Assert.True(ReferenceEquals(widget.SecureMode(true), widget));
            Assert.True(widget.SecureMode());
        }
 public void Constructors()
 {
   var widget = new YouTubeVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.False(widget.PrivateMode());
   Assert.False(widget.SecureMode());
 }
    public void Height_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YouTubeVideoWidget().Height(null));
      Assert.Throws<ArgumentException>(() => new YouTubeVideoWidget().Height(string.Empty));

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

      var widget = new YouTubeVideoWidget();
      Assert.Null(widget.Width());
      Assert.True(ReferenceEquals(widget.Width("width"), widget));
      Assert.Equal("width", widget.Width());
    }
        public void Constructors()
        {
            var widget = new YouTubeVideoWidget();

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

            var widget = new YouTubeVideoWidget();

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

            var widget = new YouTubeVideoWidget();

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