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

            result.Append("<mat-select-wrapper [dataSource]=\"[");
            result.Append("{&quot;text&quot;:&quot;&#x662F;&quot;,&quot;value&quot;:&quot;true&quot;},");
            result.Append("{&quot;text&quot;:&quot;&#x5426;&quot;,&quot;value&quot;:&quot;false&quot;}");
            result.Append("]\"></mat-select-wrapper>");
            Assert.Equal(result.ToString(), GetResult(_component.Bool()));
        }
Exemplo n.º 2
0
        public void TestBool()
        {
            var result = new String();

            result.Append("<mat-select-wrapper [dataSource]=\"[");
            result.Append("{'text':'是','value':true},");
            result.Append("{'text':'否','value':false}");
            result.Append("]\"></mat-select-wrapper>");
            Assert.Equal(result.ToString(), GetResult(_component.Bool()));
        }