unittest.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <html>
  2. <head>
  3. <style>
  4. body { font-family:Arial; margin:20px; font-size:10pt}
  5. div.assembly>div.title { font-size:20pt; margin-bottom:20px; border-bottom:1px solid silver; padding-bottom:20px; }
  6. div.testfixture>div.title { font-size:16pt; }
  7. div.testfixture { margin-bottom:20px; }
  8. div.test { margin-left:20px; }
  9. div.test div.title { font-size:12pt; }
  10. div.errormessage { color:Red; padding-top:10px; }
  11. div.pass>div.title { color:#808080; }
  12. span.highlighted { color:Red; }
  13. pre.code { background-color:#f0f0f0; }
  14. div.summary { border:1px solid silver; padding:10px; margin-bottom:20px; text-align:center; }
  15. div.fail div.summary { background-color:Red; color:White; }
  16. div.pass div.summary { background-color:Lime; }
  17. div.collapsed div.content { display:none; }
  18. div.test div.content { border-left:2px solid #d0d0d0; padding-left:10px; margin-left:10px; }
  19. a { text-decoration:none; color:#606060; }
  20. a:hover { color:orange; }
  21. div>div.title>span.indicator { display:inline-block; width:10px; height:10px; background-color:lime; border-radius:7px}
  22. div.fail>div.title>span.indicator { display:inline-block; width:10px; height:10px; background-color:red; }
  23. div.assembly>div.title>span.indicator { display:none; }
  24. div.misc_info { color:#808080; }
  25. </style>
  26. <script>
  27. window.addEventListener("load", setup, false);
  28. function setup() {
  29. var divs = document.getElementsByClassName("toggle");
  30. for (var i = 0; i < divs.length; i++) {
  31. divs[i].onclick = function () {
  32. var top = this.parentNode.parentNode;
  33. if (top.className.indexOf(" collapsed") < 0)
  34. top.className += " collapsed";
  35. else
  36. top.className = top.className.replace(" collapsed", "");
  37. return false;
  38. }
  39. }
  40. }
  41. </script>
  42. </head>
  43. <body>
  44. <div class="assembly pass">
  45. <div class="title">
  46. <span class="indicator">
  47. </span>
  48. <a class="toggle" href="#">
  49. Test Results for PetaTest.exe
  50. </a>
  51. </div>
  52. <div class="summary">
  53. Passed: 35 Failed: 0 Warnings: 0 Time in Test Cases: 68ms
  54. </div>
  55. <div class="content">
  56. <div class="testfixture pass">
  57. <div class="title">
  58. <span class="indicator">
  59. </span>
  60. <a class="toggle" href="#">
  61. Test Fixture PetaTest.AssertionTests()
  62. </a>
  63. </div>
  64. <div class="content">
  65. <div class="test pass collapsed">
  66. <div class="title">
  67. <span class="indicator">
  68. </span>
  69. <a class="toggle" href="#">
  70. AreEqual_sbyte()
  71. </a>
  72. <small>6ms</small>
  73. </div>
  74. <div class="content">
  75. <pre>Test passed!
  76. </pre>
  77. </div>
  78. </div>
  79. <div class="test pass collapsed">
  80. <div class="title">
  81. <span class="indicator">
  82. </span>
  83. <a class="toggle" href="#">
  84. AreEqual_byte()
  85. </a>
  86. <small>1ms</small>
  87. </div>
  88. <div class="content">
  89. <pre>Test passed!
  90. </pre>
  91. </div>
  92. </div>
  93. <div class="test pass collapsed">
  94. <div class="title">
  95. <span class="indicator">
  96. </span>
  97. <a class="toggle" href="#">
  98. AreEqual_short()
  99. </a>
  100. <small>1ms</small>
  101. </div>
  102. <div class="content">
  103. <pre>Test passed!
  104. </pre>
  105. </div>
  106. </div>
  107. <div class="test pass collapsed">
  108. <div class="title">
  109. <span class="indicator">
  110. </span>
  111. <a class="toggle" href="#">
  112. AreEqual_ushort()
  113. </a>
  114. <small>1ms</small>
  115. </div>
  116. <div class="content">
  117. <pre>Test passed!
  118. </pre>
  119. </div>
  120. </div>
  121. <div class="test pass collapsed">
  122. <div class="title">
  123. <span class="indicator">
  124. </span>
  125. <a class="toggle" href="#">
  126. AreEqual_int()
  127. </a>
  128. <small>1ms</small>
  129. </div>
  130. <div class="content">
  131. <pre>Test passed!
  132. </pre>
  133. </div>
  134. </div>
  135. <div class="test pass collapsed">
  136. <div class="title">
  137. <span class="indicator">
  138. </span>
  139. <a class="toggle" href="#">
  140. AreEqual_uint()
  141. </a>
  142. <small>1ms</small>
  143. </div>
  144. <div class="content">
  145. <pre>Test passed!
  146. </pre>
  147. </div>
  148. </div>
  149. <div class="test pass collapsed">
  150. <div class="title">
  151. <span class="indicator">
  152. </span>
  153. <a class="toggle" href="#">
  154. AreEqual_long()
  155. </a>
  156. <small>1ms</small>
  157. </div>
  158. <div class="content">
  159. <pre>Test passed!
  160. </pre>
  161. </div>
  162. </div>
  163. <div class="test pass collapsed">
  164. <div class="title">
  165. <span class="indicator">
  166. </span>
  167. <a class="toggle" href="#">
  168. AreEqual_ulong()
  169. </a>
  170. <small>1ms</small>
  171. </div>
  172. <div class="content">
  173. <pre>Test passed!
  174. </pre>
  175. </div>
  176. </div>
  177. <div class="test pass collapsed">
  178. <div class="title">
  179. <span class="indicator">
  180. </span>
  181. <a class="toggle" href="#">
  182. AreEqual_float()
  183. </a>
  184. <small>1ms</small>
  185. </div>
  186. <div class="content">
  187. <pre>Test passed!
  188. </pre>
  189. </div>
  190. </div>
  191. <div class="test pass collapsed">
  192. <div class="title">
  193. <span class="indicator">
  194. </span>
  195. <a class="toggle" href="#">
  196. AreEqual_double()
  197. </a>
  198. <small>2ms</small>
  199. </div>
  200. <div class="content">
  201. <pre>Test passed!
  202. </pre>
  203. </div>
  204. </div>
  205. <div class="test pass collapsed">
  206. <div class="title">
  207. <span class="indicator">
  208. </span>
  209. <a class="toggle" href="#">
  210. AreEqual_double_within()
  211. </a>
  212. <small>1ms</small>
  213. </div>
  214. <div class="content">
  215. <pre>Test passed!
  216. </pre>
  217. </div>
  218. </div>
  219. <div class="test pass collapsed">
  220. <div class="title">
  221. <span class="indicator">
  222. </span>
  223. <a class="toggle" href="#">
  224. AreEqual_decimal()
  225. </a>
  226. <small>2ms</small>
  227. </div>
  228. <div class="content">
  229. <pre>Test passed!
  230. </pre>
  231. </div>
  232. </div>
  233. <div class="test pass collapsed">
  234. <div class="title">
  235. <span class="indicator">
  236. </span>
  237. <a class="toggle" href="#">
  238. AreEqual_string()
  239. </a>
  240. <small>2ms</small>
  241. </div>
  242. <div class="content">
  243. <pre>Test passed!
  244. </pre>
  245. </div>
  246. </div>
  247. <div class="test pass collapsed">
  248. <div class="title">
  249. <span class="indicator">
  250. </span>
  251. <a class="toggle" href="#">
  252. AreEqual_dates()
  253. </a>
  254. <small>16ms</small>
  255. </div>
  256. <div class="content">
  257. <pre>Test passed!
  258. </pre>
  259. </div>
  260. </div>
  261. <div class="test pass collapsed">
  262. <div class="title">
  263. <span class="indicator">
  264. </span>
  265. <a class="toggle" href="#">
  266. IsTrue()
  267. </a>
  268. <small>1ms</small>
  269. </div>
  270. <div class="content">
  271. <pre>Test passed!
  272. </pre>
  273. </div>
  274. </div>
  275. <div class="test pass collapsed">
  276. <div class="title">
  277. <span class="indicator">
  278. </span>
  279. <a class="toggle" href="#">
  280. IsNull()
  281. </a>
  282. <small>1ms</small>
  283. </div>
  284. <div class="content">
  285. <pre>Test passed!
  286. </pre>
  287. </div>
  288. </div>
  289. <div class="test pass collapsed">
  290. <div class="title">
  291. <span class="indicator">
  292. </span>
  293. <a class="toggle" href="#">
  294. AreSame()
  295. </a>
  296. <small>1ms</small>
  297. </div>
  298. <div class="content">
  299. <pre>Test passed!
  300. </pre>
  301. </div>
  302. </div>
  303. <div class="test pass collapsed">
  304. <div class="title">
  305. <span class="indicator">
  306. </span>
  307. <a class="toggle" href="#">
  308. IsEmpty_String()
  309. </a>
  310. <small>1ms</small>
  311. </div>
  312. <div class="content">
  313. <pre>Test passed!
  314. </pre>
  315. </div>
  316. </div>
  317. <div class="test pass collapsed">
  318. <div class="title">
  319. <span class="indicator">
  320. </span>
  321. <a class="toggle" href="#">
  322. IsNullOrEmpty_String()
  323. </a>
  324. <small>1ms</small>
  325. </div>
  326. <div class="content">
  327. <pre>Test passed!
  328. </pre>
  329. </div>
  330. </div>
  331. <div class="test pass collapsed">
  332. <div class="title">
  333. <span class="indicator">
  334. </span>
  335. <a class="toggle" href="#">
  336. IsEmpty_Collection()
  337. </a>
  338. <small>1ms</small>
  339. </div>
  340. <div class="content">
  341. <pre>Test passed!
  342. </pre>
  343. </div>
  344. </div>
  345. <div class="test pass collapsed">
  346. <div class="title">
  347. <span class="indicator">
  348. </span>
  349. <a class="toggle" href="#">
  350. Contains_Collection()
  351. </a>
  352. <small>1ms</small>
  353. </div>
  354. <div class="content">
  355. <pre>Test passed!
  356. </pre>
  357. </div>
  358. </div>
  359. <div class="test pass collapsed">
  360. <div class="title">
  361. <span class="indicator">
  362. </span>
  363. <a class="toggle" href="#">
  364. Contains_String()
  365. </a>
  366. <small>1ms</small>
  367. </div>
  368. <div class="content">
  369. <pre>Test passed!
  370. </pre>
  371. </div>
  372. </div>
  373. <div class="test pass collapsed">
  374. <div class="title">
  375. <span class="indicator">
  376. </span>
  377. <a class="toggle" href="#">
  378. Greater()
  379. </a>
  380. <small>1ms</small>
  381. </div>
  382. <div class="content">
  383. <pre>Test passed!
  384. </pre>
  385. </div>
  386. </div>
  387. <div class="test pass collapsed">
  388. <div class="title">
  389. <span class="indicator">
  390. </span>
  391. <a class="toggle" href="#">
  392. GreaterOrEqual()
  393. </a>
  394. <small>0ms</small>
  395. </div>
  396. <div class="content">
  397. <pre>Test passed!
  398. </pre>
  399. </div>
  400. </div>
  401. <div class="test pass collapsed">
  402. <div class="title">
  403. <span class="indicator">
  404. </span>
  405. <a class="toggle" href="#">
  406. Less()
  407. </a>
  408. <small>1ms</small>
  409. </div>
  410. <div class="content">
  411. <pre>Test passed!
  412. </pre>
  413. </div>
  414. </div>
  415. <div class="test pass collapsed">
  416. <div class="title">
  417. <span class="indicator">
  418. </span>
  419. <a class="toggle" href="#">
  420. LessOrEqual()
  421. </a>
  422. <small>0ms</small>
  423. </div>
  424. <div class="content">
  425. <pre>Test passed!
  426. </pre>
  427. </div>
  428. </div>
  429. <div class="test pass collapsed">
  430. <div class="title">
  431. <span class="indicator">
  432. </span>
  433. <a class="toggle" href="#">
  434. IsInstanceOf()
  435. </a>
  436. <small>1ms</small>
  437. </div>
  438. <div class="content">
  439. <pre>Test passed!
  440. </pre>
  441. </div>
  442. </div>
  443. <div class="test pass collapsed">
  444. <div class="title">
  445. <span class="indicator">
  446. </span>
  447. <a class="toggle" href="#">
  448. IsAssignableFrom()
  449. </a>
  450. <small>1ms</small>
  451. </div>
  452. <div class="content">
  453. <pre>Test passed!
  454. </pre>
  455. </div>
  456. </div>
  457. <div class="test pass collapsed">
  458. <div class="title">
  459. <span class="indicator">
  460. </span>
  461. <a class="toggle" href="#">
  462. IsAssignableTo()
  463. </a>
  464. <small>1ms</small>
  465. </div>
  466. <div class="content">
  467. <pre>Test passed!
  468. </pre>
  469. </div>
  470. </div>
  471. <div class="test pass collapsed">
  472. <div class="title">
  473. <span class="indicator">
  474. </span>
  475. <a class="toggle" href="#">
  476. AllItemsAreUnique()
  477. </a>
  478. <small>4ms</small>
  479. </div>
  480. <div class="content">
  481. <pre>Test passed!
  482. </pre>
  483. </div>
  484. </div>
  485. <div class="test pass collapsed">
  486. <div class="title">
  487. <span class="indicator">
  488. </span>
  489. <a class="toggle" href="#">
  490. AllItemsAreNotNull()
  491. </a>
  492. <small>1ms</small>
  493. </div>
  494. <div class="content">
  495. <pre>Test passed!
  496. </pre>
  497. </div>
  498. </div>
  499. <div class="test pass collapsed">
  500. <div class="title">
  501. <span class="indicator">
  502. </span>
  503. <a class="toggle" href="#">
  504. AllItemsAreEqual()
  505. </a>
  506. <small>1ms</small>
  507. </div>
  508. <div class="content">
  509. <pre>Test passed!
  510. </pre>
  511. </div>
  512. </div>
  513. <div class="test pass collapsed">
  514. <div class="title">
  515. <span class="indicator">
  516. </span>
  517. <a class="toggle" href="#">
  518. AllItemsAreInstancesOf()
  519. </a>
  520. <small>1ms</small>
  521. </div>
  522. <div class="content">
  523. <pre>Test passed!
  524. </pre>
  525. </div>
  526. </div>
  527. <div class="test pass collapsed">
  528. <div class="title">
  529. <span class="indicator">
  530. </span>
  531. <a class="toggle" href="#">
  532. IsSubsetOf()
  533. </a>
  534. <small>7ms</small>
  535. </div>
  536. <div class="content">
  537. <pre>Test passed!
  538. </pre>
  539. </div>
  540. </div>
  541. <div class="test pass collapsed">
  542. <div class="title">
  543. <span class="indicator">
  544. </span>
  545. <a class="toggle" href="#">
  546. AreEquivalent()
  547. </a>
  548. <small>4ms</small>
  549. </div>
  550. <div class="content">
  551. <pre>Test passed!
  552. </pre>
  553. </div>
  554. </div>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. <div class="misc_info">
  560. Time in test cases 68ms, setup/teardown 0ms, test framework 70ms<br/>Tests run at 31-Jul-11 10:09:51 PM by bradr on MACBOOK under Microsoft Windows NT 6.1.7600.0<br/>Command line: c:\b\dev\source\PetaTest\PetaTest\bin\Release\PetaTest.exe /out:..\..\unittest.html
  561. </div>
  562. </body>
  563. </html>