PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/MalApi.Integration/GetAnimeListForUserTest.cs

https://bitbucket.org/LHCGreg/mal-api
C# | 42 lines | 23 code | 3 blank | 16 comment | 0 complexity | af1cdcfe7d16ead10a660692bc5866d6 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. using MalApi;
  7. namespace MalApi.Integration
  8. {
  9. [TestFixture]
  10. public class GetAnimeListForUserTest
  11. {
  12. [Test]
  13. public void GetAnimeListForUser()
  14. {
  15. string username = "lordhighcaptain";
  16. using (MyAnimeListApi api = new MyAnimeListApi())
  17. {
  18. MalUserLookupResults userLookup = api.GetAnimeListForUser(username);
  19. // Just a smoke test that checks that getting an anime list returns something
  20. Assert.That(userLookup.AnimeList, Is.Not.Empty);
  21. }
  22. }
  23. }
  24. }
  25. /*
  26. Copyright 2012 Greg Najda
  27. Licensed under the Apache License, Version 2.0 (the "License");
  28. you may not use this file except in compliance with the License.
  29. You may obtain a copy of the License at
  30. http://www.apache.org/licenses/LICENSE-2.0
  31. Unless required by applicable law or agreed to in writing, software
  32. distributed under the License is distributed on an "AS IS" BASIS,
  33. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  34. See the License for the specific language governing permissions and
  35. limitations under the License.
  36. */