Example #1
0
 public async Task GetLatestDweetForWithoutKey()
 {
     Thread.Sleep(1000); //make sure API is only called once every second for the same thing
     Assert.True((await DweetIO.GetLatestDweetFor("someRandomThingJustForDweetSharp")).StartsWith("{\"this\":\"succeeded\","));
 }
Example #2
0
 public async Task FailRemoveLock()
 {
     Assert.False(await DweetIO.RemoveLock("dweetLock", "masterKey"));
 }
Example #3
0
 public async Task DweetQuietlyForWithoutKey()
 {
     Thread.Sleep(1000); //make sure API is only called once every second for the same thing
     Assert.True(await DweetIO.DweetQuietlyFor("someRandomThingJustForDweetSharp", "{\"test\":123456789}"));
 }
Example #4
0
 public async Task FailUnlock()
 {
     Assert.False(await DweetIO.Unlock("someRandomThingJustForDweetSharp", "masterKey"));
 }