Example #1
0
        public void CreateList_Requires_ListName()
        {
            InitializeTwitterContext();

            var ex = Assert.Throws <ArgumentException>(() => ctx.CreateList(null, "public", "desc"));

            Assert.Equal("listName", ex.ParamName);
        }
Example #2
0
        /// <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);
        }