コード例 #1
0
        public void CheckConsistency_ItemSetFeatures2Items10_ReturnsTrue()
        {
            // arrange
            FillItemSet_Features2_Items10();

            // act
            bool r = _set.CheckConsistency();

            //assert
            Assert.AreEqual(true, r);
        }
コード例 #2
0
        public void FillItemNumericalSet_ExcelDocument_()
        {
            // arrange
            GenerateExcelDocumentF3();
            FileInfo fi = new FileInfo(@"temp\test.xlsx");

            //FileInfo fi = new FileInfo(@"data\test-4x1000.xlsx");
            if (!fi.Exists)
            {
                Assert.Fail();
            }

            // act
            ItemNumericalSet set = ExcelParser.ParseItemNumericalSet(fi.FullName, 1);

            // assert
            Assert.IsNotNull(set);
            Assert.AreEqual(_itemsQty, set.Count());
            Assert.AreEqual(true, set.CheckConsistency());
        }