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

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

            Assert.Equal((byte)YandexMoneyPaymentFormText.Pay, widget.Text());
            Assert.True(ReferenceEquals(widget.Text(1), widget));
            Assert.Equal(1, widget.Text());
        }
        public void Sum_Method()
        {
            var widget = new YandexMoneyPaymentFormWidget();

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

            Assert.False(widget.AskPayerAddress());
            Assert.True(ReferenceEquals(widget.AskPayerAddress(true), widget));
            Assert.True(widget.AskPayerAddress());
        }
    public void Description_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexMoneyPaymentFormWidget().Description(null));
      Assert.Throws<ArgumentException>(() => new YandexMoneyPaymentFormWidget().Description(string.Empty));

      var widget = new YandexMoneyPaymentFormWidget();
      Assert.Null(widget.Description());
      Assert.True(ReferenceEquals(widget.Description("description"), widget));
      Assert.Equal("description", widget.Description());
    }
    public void Account_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new YandexMoneyPaymentFormWidget().Account(null));
      Assert.Throws<ArgumentException>(() => new YandexMoneyPaymentFormWidget().Account(string.Empty));

      var widget = new YandexMoneyPaymentFormWidget();
      Assert.Null(widget.Account());
      Assert.True(ReferenceEquals(widget.Account("account"), widget));
      Assert.Equal("account", widget.Account());
    }
        public void Description_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexMoneyPaymentFormWidget().Description(null));
            Assert.Throws <ArgumentException>(() => new YandexMoneyPaymentFormWidget().Description(string.Empty));

            var widget = new YandexMoneyPaymentFormWidget();

            Assert.Null(widget.Description());
            Assert.True(ReferenceEquals(widget.Description("description"), widget));
            Assert.Equal("description", widget.Description());
        }
        public void Account_Method()
        {
            Assert.Throws <ArgumentNullException>(() => new YandexMoneyPaymentFormWidget().Account(null));
            Assert.Throws <ArgumentException>(() => new YandexMoneyPaymentFormWidget().Account(string.Empty));

            var widget = new YandexMoneyPaymentFormWidget();

            Assert.Null(widget.Account());
            Assert.True(ReferenceEquals(widget.Account("account"), widget));
            Assert.Equal("account", widget.Account());
        }
 public void Constructors()
 {
   var widget = new YandexMoneyPaymentFormWidget();
   Assert.Null(widget.Account());
   Assert.Null(widget.Description());
   Assert.Null(widget.Sum());
   Assert.True(widget.Cards());
   Assert.Equal((byte) YandexMoneyPaymentFormText.Pay, widget.Text());
   Assert.False(widget.AskPayerPurpose());
   Assert.False(widget.AskPayerComment());
   Assert.False(widget.AskPayerFullName());
   Assert.False(widget.AskPayerEmail());
   Assert.False(widget.AskPayerPhone());
   Assert.False(widget.AskPayerAddress());
 }
        public void Constructors()
        {
            var widget = new YandexMoneyPaymentFormWidget();

            Assert.Null(widget.Account());
            Assert.Null(widget.Description());
            Assert.Null(widget.Sum());
            Assert.True(widget.Cards());
            Assert.Equal((byte)YandexMoneyPaymentFormText.Pay, widget.Text());
            Assert.False(widget.AskPayerPurpose());
            Assert.False(widget.AskPayerComment());
            Assert.False(widget.AskPayerFullName());
            Assert.False(widget.AskPayerEmail());
            Assert.False(widget.AskPayerPhone());
            Assert.False(widget.AskPayerAddress());
        }
 public void Text_Method()
 {
   var widget = new YandexMoneyPaymentFormWidget();
   Assert.Equal((byte)YandexMoneyPaymentFormText.Pay, widget.Text());
   Assert.True(ReferenceEquals(widget.Text(1), widget));
   Assert.Equal(1, widget.Text());
 }
 public void PayerAddress_Method()
 {
   var widget = new YandexMoneyPaymentFormWidget();
   Assert.False(widget.AskPayerAddress());
   Assert.True(ReferenceEquals(widget.AskPayerAddress(true), widget));
   Assert.True(widget.AskPayerAddress());
 }