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 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()); }