blob: 36b8fb05af5b7663f7045e1ae2d3f48bf721cc76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
TestCase('PersonTest', {
testWhoAreYou : function() {
var p = new Person('John', 'Doe', 'P.');
assertEquals('Should have responded with full name', 'John P. Doe', p.whoAreYou());
},
testWhoAreYouWithNoMiddleName : function() {
var p = new Person('John', 'Doe');
assertEquals('Should have used only first and last name', 'John Doe', p.whoAreYou());
}
});
|