예제 #1
0
        public void GetNumbersString_StringWithNumbers_ReturnsIntegers()
        {
            List <Entry> result = AssemblyString.GetNumbersString(Data.FakeData());
            int          number;

            foreach (var item in result)
            {
                Assert.IsTrue(Int32.TryParse(item.Comments, out number));
                Assert.IsTrue(Int32.TryParse(item.Order, out number));
                Assert.IsTrue(Int32.TryParse(item.Points, out number));
            }
        }
예제 #2
0
        public void Filter_Optionb_ReturnsListFiltered()
        {
            List <Entry> result = AssemblyString.Filter(Data.FakeDataWithOutNumbers(), Const.case2);
            bool         more5  = false;

            foreach (var item in result)
            {
                if (item.Title.Split(' ', '-').Count() >= 5)
                {
                    more5 = true;
                }
            }
            Assert.IsFalse(more5);
        }