Source

Chello / Chello.Tests / ListsTests.cs

Full commit
using System.Collections.Generic;
using System.Linq;
using Chello.Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Chello.Tests
{
	[TestClass]
	public class ListsTests : TestBase
	{
		protected string TestBoard { get { return "TESTBOARD1"; } }
		protected string TestList { get { return "TESTLIST1"; } }

		[TestMethod]
		public void ForBoard()
		{
			var chello = new ChelloClient();
			IEnumerable<List> lists = chello.Lists.ForBoard(TestBoard);
			Assert.IsTrue(lists.Count() > 0);
		}

		[TestMethod]
		public void Single()
		{
			var chello = new ChelloClient();
			List list = chello.Lists.Single(TestList);
			Assert.IsNotNull(list);
			Assert.AreEqual("Test List", list.Name);
		}
	}
}