Пример #1
0
        public void Subset_Smoke_Test()
        {
            var input   = "".ToCharArray().ToList();
            var subsets = Subset.Find <char>(input);

            Assert.AreEqual(Math.Pow(2, input.Count), subsets.Count);

            input   = "cookie".ToCharArray().ToList();
            subsets = Subset.Find <char>(input);
            Assert.AreEqual(Math.Pow(2, input.Count), subsets.Count);

            input   = "monster".ToCharArray().ToList();
            subsets = Subset.Find <char>(input);
            Assert.AreEqual(Math.Pow(2, input.Count), subsets.Count);
        }