Esempio n. 1
0
        public void TestListWithJustTwoItem()
        {
            FindAllPossibleSubsets c      = new FindAllPossibleSubsets();
            List <List <string> >  result = c.HandleFindAllPossibleSubsets(new List <string>()
            {
                "a", "b", "c"
            });

            Assert.AreEqual(7, result.Count);
        }
Esempio n. 2
0
        public void TestListWithJustOneItem()
        {
            FindAllPossibleSubsets c      = new FindAllPossibleSubsets();
            List <List <string> >  result = c.HandleFindAllPossibleSubsets(new List <string>()
            {
                "a"
            });

            Assert.AreEqual(1, result.Count);
            Assert.AreEqual("a", result[0][0]);
        }