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()); }
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()); }
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()); }
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()); }