コード例 #1
0
ファイル: WebHookWorkItemTests.cs プロジェクト: knom/WebHooks
 public void WebHook_Roundtrips()
 {
     PropertyAssert.Roundtrips(_workItem, s => s.WebHook, PropertySetter.NullRoundtrips, defaultValue: _webHook, roundtripValue: new WebHook());
 }
コード例 #2
0
        public void Results_Roundtrips()
        {
            List <int> roundtrips = new List <int>();

            PropertyAssert.Roundtrips(this.queryResult, r => r.Results, PropertySetter.NullThrows, defaultValue: this.results, roundtripValue: roundtrips);
        }
コード例 #3
0
 public void Name_Roundtrips()
 {
     PropertyAssert.Roundtrips(_filter, f => f.Name, PropertySetter.NullRoundtrips, roundtripValue: "你好世界");
 }
コード例 #4
0
 public void EnableTestSend_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.client, c => c.EnableTestSend, defaultValue: false, roundtripValue: true);
 }
 public void Provider_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.creds, c => c.Provider, PropertySetter.NullRoundtrips, defaultValue: "TestProvider", roundtripValue: "你好世界");
 }
コード例 #6
0
 public void Width_Roundtrips()
 {
     PropertyAssert.Roundtrips(_media, m => m.Width, defaultValue: 0, roundtripValue: 1024);
 }
コード例 #7
0
 public void ConnectionString_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.settings, s => s.ConnectionString, PropertySetter.NullThrows, defaultValue: ConnectionString, roundtripValue: "Value");
 }
コード例 #8
0
 public void IsPaused_Roundtrips()
 {
     PropertyAssert.Roundtrips(_webHook, w => w.IsPaused, defaultValue: false, roundtripValue: true);
 }
コード例 #9
0
 public void Id_Roundtrips()
 {
     PropertyAssert.Roundtrips(_webHook, w => w.Id, PropertySetter.NullDoesNotRoundtrip, roundtripValue: "你好世界");
 }
コード例 #10
0
 public void FullName_Roundtrips()
 {
     PropertyAssert.Roundtrips(_user, u => u.FullName, PropertySetter.NullRoundtrips, roundtripValue: "Value");
 }
コード例 #11
0
        public void ProfilePicture_Roundtrips()
        {
            Uri roundtrip = new Uri("http://localhost");

            PropertyAssert.Roundtrips(_user, u => u.ProfilePicture, PropertySetter.NullRoundtrips, roundtripValue: roundtrip);
        }
コード例 #12
0
 public void Id_Roundtrips()
 {
     PropertyAssert.Roundtrips(_user, u => u.Id, PropertySetter.NullRoundtrips, roundtripValue: "Value");
 }
コード例 #13
0
 public void Action_Roundtrips()
 {
     PropertyAssert.Roundtrips(_notification, n => n.Action, PropertySetter.NullThrows, defaultValue: TestAction, roundtripValue: "你好世界");
 }
コード例 #14
0
ファイル: WebHookWorkItemTests.cs プロジェクト: knom/WebHooks
 public void Offset_Roundtrips()
 {
     _workItem.Offset = 1024;
     PropertyAssert.Roundtrips(_workItem, s => s.Offset, defaultValue: 1024, roundtripValue: 2048);
 }
 public void HostName_Roundtrips()
 {
     this.settings[MobileAppSettingsKeys.HostName] = "myapp.azurewebsites.net";
     PropertyAssert.Roundtrips(this.settings, s => s.HostName, PropertySetter.NullRoundtrips, defaultValue: "myapp.azurewebsites.net", roundtripValue: "Value");
 }
コード例 #16
0
        public void WebHookUri_Roundtrips()
        {
            Uri roundTrip = new Uri("http://localhost/path");

            PropertyAssert.Roundtrips(_webHook, w => w.WebHookUri, PropertySetter.NullRoundtrips, roundtripValue: roundTrip);
        }
コード例 #17
0
 public void Address_Roundtrips()
 {
     PropertyAssert.Roundtrips(_media, m => m.Address, PropertySetter.NullRoundtrips, roundtripValue: "Value");
 }
コード例 #18
0
 public void Secret_Roundtrips()
 {
     PropertyAssert.Roundtrips(_webHook, w => w.Secret, PropertySetter.NullRoundtrips, roundtripValue: "你好世界");
 }
コード例 #19
0
 public void Height_Roundtrips()
 {
     PropertyAssert.Roundtrips(_media, m => m.Height, defaultValue: 0, roundtripValue: 1024);
 }
コード例 #20
0
 public void Description_Roundtrips()
 {
     PropertyAssert.Roundtrips(_webHook, w => w.Description, PropertySetter.NullRoundtrips, roundtripValue: "你好世界");
 }
コード例 #21
0
 public void Provider_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.settings, s => s.Provider, PropertySetter.NullRoundtrips, roundtripValue: "Value");
 }
コード例 #22
0
        public void Context_Roundtrips()
        {
            DbContext roundtrips = new DbContext(ConnectionStringName);

            PropertyAssert.Roundtrips(this.manager, m => m.Context, PropertySetter.NullThrows, defaultValue: this.context, roundtripValue: roundtrips);
        }
コード例 #23
0
        public void Value_Roundtrips()
        {
            SlackField field = new SlackField("MyTitle", "MyValue");

            PropertyAssert.Roundtrips(field, a => a.Value, PropertySetter.NullThrows, defaultValue: "MyValue", roundtripValue: "你好世界");
        }
コード例 #24
0
        public void Request_Roundtrips()
        {
            HttpRequestMessage roundtrips = new HttpRequestMessage();

            PropertyAssert.Roundtrips(this.manager, m => m.Request, PropertySetter.NullThrows, defaultValue: this.request, roundtripValue: roundtrips);
        }
 public void UserId_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.creds, c => c.UserId, PropertySetter.NullRoundtrips, roundtripValue: "userId");
 }
 public void SubscriptionId_Roundtrips()
 {
     this.settings[MobileAppSettingsKeys.SubscriptionId] = "DefaultSubId";
     PropertyAssert.Roundtrips(this.settings, s => s.SubscriptionId, PropertySetter.NullRoundtrips, defaultValue: "DefaultSubId", roundtripValue: "Value");
 }
コード例 #27
0
 public void Id_Roundtrips()
 {
     PropertyAssert.Roundtrips(this.message, m => m.Id, PropertySetter.NullRoundtrips, roundtripValue: "roundtrips");
 }
 public void NotificationHubName_Roundtrips()
 {
     this.settings[MobileAppSettingsKeys.NotificationHubName] = "DefaultNotHubName";
     PropertyAssert.Roundtrips(this.settings, s => s.NotificationHubName, PropertySetter.NullRoundtrips, defaultValue: "DefaultNotHubName", roundtripValue: "Value");
 }
コード例 #29
0
 public void Description_Roundtrips()
 {
     PropertyAssert.Roundtrips(_filter, f => f.Description, PropertySetter.NullRoundtrips, roundtripValue: "你好世界");
 }
コード例 #30
0
ファイル: WebHookWorkItemTests.cs プロジェクト: knom/WebHooks
 public void Id_Roundtrips()
 {
     PropertyAssert.Roundtrips(_workItem, s => s.Id, PropertySetter.NullDoesNotRoundtrip, roundtripValue: "value");
 }