PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/MalApi.Integration/GetRecentOnlineUsersTest.cs

https://bitbucket.org/LHCGreg/mal-api
C# | 38 lines | 21 code | 2 blank | 15 comment | 0 complexity | bd008102f959e46be63076a15ef80c6e MD5 | raw file
Possible License(s): Apache-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using NUnit.Framework;
  6. namespace MalApi.Integration
  7. {
  8. [TestFixture]
  9. public class GetRecentOnlineUsersTest
  10. {
  11. [Test]
  12. public void GetRecentOnlineUsers()
  13. {
  14. using (MyAnimeListApi api = new MyAnimeListApi())
  15. {
  16. RecentUsersResults results = api.GetRecentOnlineUsers();
  17. Assert.That(results.RecentUsers.Count, Is.GreaterThan(0));
  18. }
  19. }
  20. }
  21. }
  22. /*
  23. Copyright 2012 Greg Najda
  24. Licensed under the Apache License, Version 2.0 (the "License");
  25. you may not use this file except in compliance with the License.
  26. You may obtain a copy of the License at
  27. http://www.apache.org/licenses/LICENSE-2.0
  28. Unless required by applicable law or agreed to in writing, software
  29. distributed under the License is distributed on an "AS IS" BASIS,
  30. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  31. See the License for the specific language governing permissions and
  32. limitations under the License.
  33. */