Пример #1
0
        public void DataFrameInfoTest()
        {
            DataFrame dataFrame = MakeDataFrameWithTwoColumns(length: 5);

            DataFrameKernelExtension.RegisterDataFrame();
            var html = dataFrame.Info().ToDisplayString("text/html");

            Assert.Contains(TableHtmlPart, html);
            Assert.DoesNotMatch(_buttonHtmlPart, html);
        }
Пример #2
0
        public void MoreThanOnePageDataFrameTest()
        {
            DataFrame dataFrame = MakeDataFrameWithTwoColumns(length: 26);

            DataFrameKernelExtension.RegisterDataFrame();
            var html = dataFrame.ToDisplayString("text/html");

            Assert.Contains(TableHtmlPart, html);
            Assert.Matches(_buttonHtmlPart, html);
        }
        public void DataFrameInfoTest()
        {
            DataFrame dataFrame = MakeDataFrameWithTwoColumns(length: 5);

            DataFrameKernelExtension.RegisterDataFrame();
            var html = dataFrame.Info().ToDisplayString("text/html");

            Assert.Contains(TABLE_HTML_PART, html);
            Assert.DoesNotContain(BUTTON_HTML_PART, html);
        }
        public void LessThanOnePageDataFrameTest()
        {
            DataFrame dataFrame = MakeDataFrameWithTwoColumns(length: 5);

            DataFrameKernelExtension.RegisterDataFrame();
            var html = dataFrame.ToDisplayString("text/html");

            Assert.Contains(TableHtmlPart, html);
            Assert.DoesNotContain(ButtonHtmlPart, html);
        }
        public void MoreThanTenRowsDataFrameTest()
        {
            DataFrame dataFrame = MakeDataFrameWithTwoColumns(length: 21);

            DataFrameKernelExtension.RegisterDataFrame();
            var html = dataFrame.ToDisplayString("text/html");

            Assert.Contains(TABLE_HTML_PART, html);
            Assert.Contains(BUTTON_HTML_PART, html);
        }