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

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

            var widget = new YandexVideoWidget();

            Assert.Null(widget.Height());
            Assert.True(ReferenceEquals(widget.Height("height"), widget));
            Assert.Equal("height", widget.Height());
        }
 public void Constructors()
 {
   var widget = new YandexVideoWidget();
   Assert.Null(widget.Id());
   Assert.Null(widget.Width());
   Assert.Null(widget.Height());
   Assert.Null(widget.User());
 }
コード例 #4
0
        public void Constructors()
        {
            var widget = new YandexVideoWidget();

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