public void CreateList_Requires_ListName() { InitializeTwitterContext(); var ex = Assert.Throws <ArgumentException>(() => ctx.CreateList(null, "public", "desc")); Assert.Equal("listName", ex.ParamName); }
/// <summary> /// Shows how to create a new list /// </summary> /// <param name="twitterCtx">TwitterContext</param> private static void CreateListDemo(TwitterContext twitterCtx) { List list = twitterCtx.CreateList("LinqToTweeter", "test", "public", "This is a test"); Console.WriteLine("List Name: {0}, Description: {1}", list.Name, list.Description); }