Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm
to install Mocha:
npm install mocha
/* | |
Find all companies that people with lastname "Robertson" have founded | |
*/ | |
var mongoose = require('mongoose'); | |
var PersonSchema = new mongoose.Schema { | |
firstname: String, | |
lastname: String | |
}; | |
var Person = mongoose.model('Person', PersonSchema); |
Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm
to install Mocha:
npm install mocha
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" Culture="es-MX" GroupPanelPosition="Top"> | |
<MasterTableView> | |
<Columns> | |
<telerik:GridAttachmentColumn FileName="attachment" FilterControlAltText="Filter comumna1 column" UniqueName="comumna1"> | |
</telerik:GridAttachmentColumn> | |
</Columns> | |
</MasterTableView> | |
</telerik:RadGrid> | |
//metodo | |
private void EditarLista() | |
{ | |
List<Movies> lstest = new List<Movies> { | |
new Movies(){Titulo="TROLL", Genero="Terror"}, | |
new Movies(){Titulo="IRON", Genero="ACTION"}, | |
new Movies(){Titulo="CRY", Genero="DRAMA"}, | |
new Movies(){Titulo="SIN CIRY", Genero="DRAMA"}, | |
new Movies(){Titulo="10 MM", Genero="DRAMA"}, | |
new Movies(){Titulo="ORIGEN", Genero="DRAMA"} |
Dim lsA As New List(Of String) | |
For i = 1 To 10 Step 1 | |
lsA.Add(i) | |
Next | |
Dim lsB As New List(Of String) | |
For i = 11 To 20 Step 1 | |
lsB.Add(i) | |
Next | |
lsA = lsA.Concat(lsB).ToList() | |
For Each l In lsA |