sample_exception.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  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 fail">
  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: 34 Failed: 1 Warnings: 0 Time in Test Cases: 72ms
  54. </div>
  55. <div class="content">
  56. <div class="testfixture fail">
  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>4ms</small>
  73. </div>
  74. <div class="content">
  75. <pre>Test passed!
  76. </pre>
  77. </div>
  78. </div>
  79. <div class="test fail">
  80. <div class="title">
  81. <span class="indicator">
  82. </span>
  83. <a class="toggle" href="#">
  84. AreEqual_byte()
  85. </a>
  86. </div>
  87. <div class="content">
  88. <div class="exception">
  89. <div class="errormessage">
  90. Assertion failed - Strings are not equal at offset 6
  91. </div>
  92. <p>
  93. Detail
  94. </p>
  95. <pre> lhs: &quot;Hello World&quot;
  96. rhs: &quot;Hello There&quot;
  97. ^</pre>
  98. <p>
  99. Stack Trace
  100. </p>
  101. <pre class="stacktrace">AreEqual_byte - c:\b\dev\source\PetaTest\PetaTest\TestsAssertions.cs(23)
  102. </pre>
  103. <p>
  104. Location
  105. </p>
  106. <pre class="code"> 00021: public void AreEqual_byte()
  107. 00022: {
  108. <span class="highlighted"> 00023:-&gt; Assert.AreEqual(&quot;Hello World&quot;, &quot;Hello There&quot;);
  109. </span> 00024: Assert.AreEqual&lt;byte&gt;(10, 10);
  110. 00025: Assert.AreNotEqual&lt;byte&gt;(10, 11);
  111. </pre>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="test pass collapsed">
  116. <div class="title">
  117. <span class="indicator">
  118. </span>
  119. <a class="toggle" href="#">
  120. AreEqual_short()
  121. </a>
  122. <small>2ms</small>
  123. </div>
  124. <div class="content">
  125. <pre>Test passed!
  126. </pre>
  127. </div>
  128. </div>
  129. <div class="test pass collapsed">
  130. <div class="title">
  131. <span class="indicator">
  132. </span>
  133. <a class="toggle" href="#">
  134. AreEqual_ushort()
  135. </a>
  136. <small>2ms</small>
  137. </div>
  138. <div class="content">
  139. <pre>Test passed!
  140. </pre>
  141. </div>
  142. </div>
  143. <div class="test pass collapsed">
  144. <div class="title">
  145. <span class="indicator">
  146. </span>
  147. <a class="toggle" href="#">
  148. AreEqual_int()
  149. </a>
  150. <small>1ms</small>
  151. </div>
  152. <div class="content">
  153. <pre>Test passed!
  154. </pre>
  155. </div>
  156. </div>
  157. <div class="test pass collapsed">
  158. <div class="title">
  159. <span class="indicator">
  160. </span>
  161. <a class="toggle" href="#">
  162. AreEqual_uint()
  163. </a>
  164. <small>1ms</small>
  165. </div>
  166. <div class="content">
  167. <pre>Test passed!
  168. </pre>
  169. </div>
  170. </div>
  171. <div class="test pass collapsed">
  172. <div class="title">
  173. <span class="indicator">
  174. </span>
  175. <a class="toggle" href="#">
  176. AreEqual_long()
  177. </a>
  178. <small>2ms</small>
  179. </div>
  180. <div class="content">
  181. <pre>Test passed!
  182. </pre>
  183. </div>
  184. </div>
  185. <div class="test pass collapsed">
  186. <div class="title">
  187. <span class="indicator">
  188. </span>
  189. <a class="toggle" href="#">
  190. AreEqual_ulong()
  191. </a>
  192. <small>1ms</small>
  193. </div>
  194. <div class="content">
  195. <pre>Test passed!
  196. </pre>
  197. </div>
  198. </div>
  199. <div class="test pass collapsed">
  200. <div class="title">
  201. <span class="indicator">
  202. </span>
  203. <a class="toggle" href="#">
  204. AreEqual_float()
  205. </a>
  206. <small>1ms</small>
  207. </div>
  208. <div class="content">
  209. <pre>Test passed!
  210. </pre>
  211. </div>
  212. </div>
  213. <div class="test pass collapsed">
  214. <div class="title">
  215. <span class="indicator">
  216. </span>
  217. <a class="toggle" href="#">
  218. AreEqual_double()
  219. </a>
  220. <small>1ms</small>
  221. </div>
  222. <div class="content">
  223. <pre>Test passed!
  224. </pre>
  225. </div>
  226. </div>
  227. <div class="test pass collapsed">
  228. <div class="title">
  229. <span class="indicator">
  230. </span>
  231. <a class="toggle" href="#">
  232. AreEqual_double_within()
  233. </a>
  234. <small>1ms</small>
  235. </div>
  236. <div class="content">
  237. <pre>Test passed!
  238. </pre>
  239. </div>
  240. </div>
  241. <div class="test pass collapsed">
  242. <div class="title">
  243. <span class="indicator">
  244. </span>
  245. <a class="toggle" href="#">
  246. AreEqual_decimal()
  247. </a>
  248. <small>2ms</small>
  249. </div>
  250. <div class="content">
  251. <pre>Test passed!
  252. </pre>
  253. </div>
  254. </div>
  255. <div class="test pass collapsed">
  256. <div class="title">
  257. <span class="indicator">
  258. </span>
  259. <a class="toggle" href="#">
  260. AreEqual_string()
  261. </a>
  262. <small>1ms</small>
  263. </div>
  264. <div class="content">
  265. <pre>Test passed!
  266. </pre>
  267. </div>
  268. </div>
  269. <div class="test pass collapsed">
  270. <div class="title">
  271. <span class="indicator">
  272. </span>
  273. <a class="toggle" href="#">
  274. AreEqual_dates()
  275. </a>
  276. <small>16ms</small>
  277. </div>
  278. <div class="content">
  279. <pre>Test passed!
  280. </pre>
  281. </div>
  282. </div>
  283. <div class="test pass collapsed">
  284. <div class="title">
  285. <span class="indicator">
  286. </span>
  287. <a class="toggle" href="#">
  288. IsTrue()
  289. </a>
  290. <small>0ms</small>
  291. </div>
  292. <div class="content">
  293. <pre>Test passed!
  294. </pre>
  295. </div>
  296. </div>
  297. <div class="test pass collapsed">
  298. <div class="title">
  299. <span class="indicator">
  300. </span>
  301. <a class="toggle" href="#">
  302. IsNull()
  303. </a>
  304. <small>0ms</small>
  305. </div>
  306. <div class="content">
  307. <pre>Test passed!
  308. </pre>
  309. </div>
  310. </div>
  311. <div class="test pass collapsed">
  312. <div class="title">
  313. <span class="indicator">
  314. </span>
  315. <a class="toggle" href="#">
  316. AreSame()
  317. </a>
  318. <small>1ms</small>
  319. </div>
  320. <div class="content">
  321. <pre>Test passed!
  322. </pre>
  323. </div>
  324. </div>
  325. <div class="test pass collapsed">
  326. <div class="title">
  327. <span class="indicator">
  328. </span>
  329. <a class="toggle" href="#">
  330. IsEmpty_String()
  331. </a>
  332. <small>1ms</small>
  333. </div>
  334. <div class="content">
  335. <pre>Test passed!
  336. </pre>
  337. </div>
  338. </div>
  339. <div class="test pass collapsed">
  340. <div class="title">
  341. <span class="indicator">
  342. </span>
  343. <a class="toggle" href="#">
  344. IsNullOrEmpty_String()
  345. </a>
  346. <small>1ms</small>
  347. </div>
  348. <div class="content">
  349. <pre>Test passed!
  350. </pre>
  351. </div>
  352. </div>
  353. <div class="test pass collapsed">
  354. <div class="title">
  355. <span class="indicator">
  356. </span>
  357. <a class="toggle" href="#">
  358. IsEmpty_Collection()
  359. </a>
  360. <small>1ms</small>
  361. </div>
  362. <div class="content">
  363. <pre>Test passed!
  364. </pre>
  365. </div>
  366. </div>
  367. <div class="test pass collapsed">
  368. <div class="title">
  369. <span class="indicator">
  370. </span>
  371. <a class="toggle" href="#">
  372. Contains_Collection()
  373. </a>
  374. <small>1ms</small>
  375. </div>
  376. <div class="content">
  377. <pre>Test passed!
  378. </pre>
  379. </div>
  380. </div>
  381. <div class="test pass collapsed">
  382. <div class="title">
  383. <span class="indicator">
  384. </span>
  385. <a class="toggle" href="#">
  386. Contains_String()
  387. </a>
  388. <small>1ms</small>
  389. </div>
  390. <div class="content">
  391. <pre>Test passed!
  392. </pre>
  393. </div>
  394. </div>
  395. <div class="test pass collapsed">
  396. <div class="title">
  397. <span class="indicator">
  398. </span>
  399. <a class="toggle" href="#">
  400. Greater()
  401. </a>
  402. <small>1ms</small>
  403. </div>
  404. <div class="content">
  405. <pre>Test passed!
  406. </pre>
  407. </div>
  408. </div>
  409. <div class="test pass collapsed">
  410. <div class="title">
  411. <span class="indicator">
  412. </span>
  413. <a class="toggle" href="#">
  414. GreaterOrEqual()
  415. </a>
  416. <small>0ms</small>
  417. </div>
  418. <div class="content">
  419. <pre>Test passed!
  420. </pre>
  421. </div>
  422. </div>
  423. <div class="test pass collapsed">
  424. <div class="title">
  425. <span class="indicator">
  426. </span>
  427. <a class="toggle" href="#">
  428. Less()
  429. </a>
  430. <small>0ms</small>
  431. </div>
  432. <div class="content">
  433. <pre>Test passed!
  434. </pre>
  435. </div>
  436. </div>
  437. <div class="test pass collapsed">
  438. <div class="title">
  439. <span class="indicator">
  440. </span>
  441. <a class="toggle" href="#">
  442. LessOrEqual()
  443. </a>
  444. <small>0ms</small>
  445. </div>
  446. <div class="content">
  447. <pre>Test passed!
  448. </pre>
  449. </div>
  450. </div>
  451. <div class="test pass collapsed">
  452. <div class="title">
  453. <span class="indicator">
  454. </span>
  455. <a class="toggle" href="#">
  456. IsInstanceOf()
  457. </a>
  458. <small>1ms</small>
  459. </div>
  460. <div class="content">
  461. <pre>Test passed!
  462. </pre>
  463. </div>
  464. </div>
  465. <div class="test pass collapsed">
  466. <div class="title">
  467. <span class="indicator">
  468. </span>
  469. <a class="toggle" href="#">
  470. IsAssignableFrom()
  471. </a>
  472. <small>2ms</small>
  473. </div>
  474. <div class="content">
  475. <pre>Test passed!
  476. </pre>
  477. </div>
  478. </div>
  479. <div class="test pass collapsed">
  480. <div class="title">
  481. <span class="indicator">
  482. </span>
  483. <a class="toggle" href="#">
  484. IsAssignableTo()
  485. </a>
  486. <small>1ms</small>
  487. </div>
  488. <div class="content">
  489. <pre>Test passed!
  490. </pre>
  491. </div>
  492. </div>
  493. <div class="test pass collapsed">
  494. <div class="title">
  495. <span class="indicator">
  496. </span>
  497. <a class="toggle" href="#">
  498. AllItemsAreUnique()
  499. </a>
  500. <small>4ms</small>
  501. </div>
  502. <div class="content">
  503. <pre>Test passed!
  504. </pre>
  505. </div>
  506. </div>
  507. <div class="test pass collapsed">
  508. <div class="title">
  509. <span class="indicator">
  510. </span>
  511. <a class="toggle" href="#">
  512. AllItemsAreNotNull()
  513. </a>
  514. <small>1ms</small>
  515. </div>
  516. <div class="content">
  517. <pre>Test passed!
  518. </pre>
  519. </div>
  520. </div>
  521. <div class="test pass collapsed">
  522. <div class="title">
  523. <span class="indicator">
  524. </span>
  525. <a class="toggle" href="#">
  526. AllItemsAreEqual()
  527. </a>
  528. <small>2ms</small>
  529. </div>
  530. <div class="content">
  531. <pre>Test passed!
  532. </pre>
  533. </div>
  534. </div>
  535. <div class="test pass collapsed">
  536. <div class="title">
  537. <span class="indicator">
  538. </span>
  539. <a class="toggle" href="#">
  540. AllItemsAreInstancesOf()
  541. </a>
  542. <small>1ms</small>
  543. </div>
  544. <div class="content">
  545. <pre>Test passed!
  546. </pre>
  547. </div>
  548. </div>
  549. <div class="test pass collapsed">
  550. <div class="title">
  551. <span class="indicator">
  552. </span>
  553. <a class="toggle" href="#">
  554. IsSubsetOf()
  555. </a>
  556. <small>7ms</small>
  557. </div>
  558. <div class="content">
  559. <pre>Test passed!
  560. </pre>
  561. </div>
  562. </div>
  563. <div class="test pass collapsed">
  564. <div class="title">
  565. <span class="indicator">
  566. </span>
  567. <a class="toggle" href="#">
  568. AreEquivalent()
  569. </a>
  570. <small>4ms</small>
  571. </div>
  572. <div class="content">
  573. <pre>Test passed!
  574. </pre>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. <div class="misc_info">
  582. Time in test cases 72ms, setup/teardown 0ms, test framework 102ms<br/>Tests run at 31-Jul-11 10:09:13 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
  583. </div>
  584. </body>
  585. </html>