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