public void Sum_Method()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.Null(widget.Sum());
   Assert.True(ReferenceEquals(widget.Sum(1), widget));
   Assert.Equal(1, widget.Sum());
 }
 public void Cards_Method()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.True(widget.Cards());
   Assert.True(ReferenceEquals(widget.Cards(false), widget));
   Assert.False(widget.Cards());
 }
        public void Text_Method()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.Equal((byte)YandexMoneyDonateFormText.Donate, widget.Text());
            Assert.True(ReferenceEquals(widget.Text(1), widget));
            Assert.Equal(1, widget.Text());
        }
        public void Cards_Method()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.True(widget.Cards());
            Assert.True(ReferenceEquals(widget.Cards(false), widget));
            Assert.False(widget.Cards());
        }
        public void Sum_Method()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.Null(widget.Sum());
            Assert.True(ReferenceEquals(widget.Sum(1), widget));
            Assert.Equal(1, widget.Sum());
        }
        public void ShowDescription_Method()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.False(widget.Description());
            Assert.True(ReferenceEquals(widget.Description(true), widget));
            Assert.True(widget.Description());
        }
        public void AskPayerPhone_Method()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.False(widget.AskPayerPhone());
            Assert.True(ReferenceEquals(widget.AskPayerPhone(true), widget));
            Assert.True(widget.AskPayerPhone());
        }
    public void DescriptionText_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexMoneyDonateFormWidget().DescriptionText(null));
      Assert.Throws<ArgumentException>(() => new YandexMoneyDonateFormWidget().DescriptionText(string.Empty));

      var widget = new YandexMoneyDonateFormWidget();
      Assert.Null(widget.DescriptionText());
      Assert.True(ReferenceEquals(widget.DescriptionText("descriptionText"), widget));
      Assert.Equal("descriptionText", widget.DescriptionText());
    }
        public void DescriptionText_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexMoneyDonateFormWidget().DescriptionText(null));
            Assert.Throws <ArgumentException>(() => new YandexMoneyDonateFormWidget().DescriptionText(string.Empty));

            var widget = new YandexMoneyDonateFormWidget();

            Assert.Null(widget.DescriptionText());
            Assert.True(ReferenceEquals(widget.DescriptionText("descriptionText"), widget));
            Assert.Equal("descriptionText", widget.DescriptionText());
        }
        public void ProjectSite_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexMoneyDonateFormWidget().ProjectSite(null));
            Assert.Throws <ArgumentException>(() => new YandexMoneyDonateFormWidget().ProjectSite(string.Empty));

            var widget = new YandexMoneyDonateFormWidget();

            Assert.Null(widget.ProjectSite());
            Assert.True(ReferenceEquals(widget.ProjectSite("projectSite"), widget));
            Assert.Equal("projectSite", widget.ProjectSite());
        }
 public void Constructors()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.DescriptionText());
   Assert.Null(widget.Sum());
   Assert.True(widget.Cards());
   Assert.Equal((byte)YandexMoneyDonateFormText.Donate, widget.Text());
   Assert.Null(widget.ProjectName());
   Assert.Null(widget.ProjectSite());
   Assert.False(widget.AskPayerComment());
   Assert.Null(widget.CommentHint());
   Assert.False(widget.AskPayerFullName());
   Assert.False(widget.AskPayerEmail());
   Assert.False(widget.AskPayerPhone());
   Assert.False(widget.Description());
 }
        public void Constructors()
        {
            var widget = new YandexMoneyDonateFormWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.DescriptionText());
            Assert.Null(widget.Sum());
            Assert.True(widget.Cards());
            Assert.Equal((byte)YandexMoneyDonateFormText.Donate, widget.Text());
            Assert.Null(widget.ProjectName());
            Assert.Null(widget.ProjectSite());
            Assert.False(widget.AskPayerComment());
            Assert.Null(widget.CommentHint());
            Assert.False(widget.AskPayerFullName());
            Assert.False(widget.AskPayerEmail());
            Assert.False(widget.AskPayerPhone());
            Assert.False(widget.Description());
        }
 public void Text_Method()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.Equal((byte) YandexMoneyDonateFormText.Donate, widget.Text());
   Assert.True(ReferenceEquals(widget.Text(1), widget));
   Assert.Equal(1, widget.Text());
 }
 public void ShowDescription_Method()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.False(widget.Description());
   Assert.True(ReferenceEquals(widget.Description(true), widget));
   Assert.True(widget.Description());
 }
 public void AskPayerPhone_Method()
 {
   var widget = new YandexMoneyDonateFormWidget();
   Assert.False(widget.AskPayerPhone());
   Assert.True(ReferenceEquals(widget.AskPayerPhone(true), widget));
   Assert.True(widget.AskPayerPhone());
 }
    public void ProjectSite_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexMoneyDonateFormWidget().ProjectSite(null));
      Assert.Throws<ArgumentException>(() => new YandexMoneyDonateFormWidget().ProjectSite(string.Empty));

      var widget = new YandexMoneyDonateFormWidget();
      Assert.Null(widget.ProjectSite());
      Assert.True(ReferenceEquals(widget.ProjectSite("projectSite"), widget));
      Assert.Equal("projectSite", widget.ProjectSite());
    }