Exemplo n.º 1
0
        public void PayerPhone_Method()
        {
            var widget = new YandexMoneyButtonWidget();

            Assert.False(widget.AskPayerPhone());
            Assert.True(ReferenceEquals(widget.AskPayerPhone(true), widget));
            Assert.True(widget.AskPayerPhone());
        }
 public void Constructors()
 {
   var widget = new YandexMoneyButtonWidget();
   Assert.Null(widget.Account());
   Assert.False(widget.AskPayerFullName());
   Assert.False(widget.AskPayerEmail());
   Assert.False(widget.AskPayerPhone());
   Assert.False(widget.AskPayerAddress());
   Assert.Equal("orange", widget.Color());
   Assert.Null(widget.Description());
   Assert.Equal("l", widget.Size());
   Assert.Null(widget.Sum());
   Assert.Equal((byte) YandexMoneyButtonText.Pay, widget.Text());
   Assert.Equal("yamoney-payment-type", widget.Type());
 }
Exemplo n.º 3
0
        public void Constructors()
        {
            var widget = new YandexMoneyButtonWidget();

            Assert.Null(widget.Account());
            Assert.False(widget.AskPayerFullName());
            Assert.False(widget.AskPayerEmail());
            Assert.False(widget.AskPayerPhone());
            Assert.False(widget.AskPayerAddress());
            Assert.Equal("orange", widget.Color());
            Assert.Null(widget.Description());
            Assert.Equal("l", widget.Size());
            Assert.Null(widget.Sum());
            Assert.Equal((byte)YandexMoneyButtonText.Pay, widget.Text());
            Assert.Equal("yamoney-payment-type", widget.Type());
        }
 public void PayerPhone_Method()
 {
   var widget = new YandexMoneyButtonWidget();
   Assert.False(widget.AskPayerPhone());
   Assert.True(ReferenceEquals(widget.AskPayerPhone(true), widget));
   Assert.True(widget.AskPayerPhone());
 }