Beispiel #1
0
    public void AppId_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new FacebookInitializationWidget().AppId(null));
      Assert.Throws<ArgumentException>(() => new FacebookInitializationWidget().AppId(string.Empty));

      var widget = new FacebookInitializationWidget();
      Assert.Null(widget.AppId());
      Assert.True(ReferenceEquals(widget.AppId("appId"), widget));
      Assert.Equal("appId", widget.AppId());
    }
Beispiel #2
0
 public void Constructors()
 {
   var widget = new FacebookInitializationWidget();
   Assert.Null(widget.AppId());
 }