예제 #1
0
        public void FrameViewDiscardClause()
        {
            FrameView original = GetTestFrame();

            FrameView filtered = original.Discard(original.Columns[0].Name);

            Assert.IsTrue(filtered.Columns.Count == original.Columns.Count - 1);
            Assert.IsTrue(filtered.Rows.Count == original.Rows.Count);

            for (int i = 0; i < filtered.Columns.Count; i++)
            {
                Assert.IsTrue(filtered.Columns[i].Name == original.Columns[i + 1].Name);
            }
        }