Exemplo n.º 1
0
		public async void CanGetUptime()
		{
			var config = new Config();
			var twitchApi = new TwitchApi(config);

			var uptime = await twitchApi.GetUptime("#ballouthebear");
			Assert.Null(uptime);
		}
Exemplo n.º 2
0
		public async void CanSetUsername()
		{
			var config = new Config();
			var twitchApi = new TwitchApi(config);

			var userInfo = new BallouBot.Data.User() {Id = "ballouthebear"};
			await twitchApi.SetUserInfo(userInfo);

			Assert.Equal(userInfo.Name, "BallouTheBear");
		}