Ejemplo n.º 1
0
        public void Test_1()
        {
            var result = new String();

            result.Append("<td>");
            result.Append("</td>");

            _builder = new TextEditColumnBuilder("editTableId", "templateId", "", null, null);
            _builder.Init();
            Assert.Equal(result.ToString(), _builder.ToString());
        }
Ejemplo n.º 2
0
        public void Test_6()
        {
            var result = new String();

            result.Append("<td>");
            result.Append("<ng-template #templateId=\"\">");
            result.Append("content");
            result.Append("</ng-template>");
            result.Append("</td>");

            _builder = new TextEditColumnBuilder("editTableId", "templateId", "a", null, _content, false);
            _builder.Init();
            Assert.Equal(result.ToString(), _builder.ToString());
        }
Ejemplo n.º 3
0
        public void Test_7()
        {
            var result = new String();

            result.Append("<td>");
            result.Append("<ng-container *ngIf=\"editTableId.editId !== row.id;else templateId\">");
            result.Append("{{row.a}}");
            result.Append("</ng-container>");
            result.Append("content");
            result.Append("</td>");

            _builder = new TextEditColumnBuilder("editTableId", "templateId", "a", null, _content, true, false);
            _builder.Init();
            Assert.Equal(result.ToString(), _builder.ToString());
        }
Ejemplo n.º 4
0
        public void Test_3()
        {
            var result = new String();

            result.Append("<td>");
            result.Append("<ng-container *ngIf=\"editTableId.editId !== row.id;else templateId\" ");
            result.Append("nz-tooltip=\"\" [nzTitle]=\"(row.a|isTruncate:3)?row.a:''\">");
            result.Append("{{row.a|truncate:3}}");
            result.Append("</ng-container>");
            result.Append("<ng-template #templateId=\"\">");
            result.Append("content");
            result.Append("</ng-template>");
            result.Append("</td>");

            _builder = new TextEditColumnBuilder("editTableId", "templateId", "a", 3, _content);
            _builder.Init();
            Assert.Equal(result.ToString(), _builder.ToString());
        }