File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2+
3+ namespace AddisonWesley . Michaelis . EssentialCSharp . Chapter04 . Listing04_15 . Tests
4+ {
5+ [ TestClass ]
6+ public class ProgramTests
7+ {
8+ [ TestMethod ]
9+ public void MainTest ( )
10+ {
11+ const string expected =
12+ @"z=122 y=121 x=120 w=119 v=118 u=117 t=116 s=115 r=114 q=113 p=112 o=111 n=110 m=109 l=108 k=107 j=106 i=105 h=104 g=103 f=102 e=101 d=100 c=99 b=98 a=97 " ;
13+
14+ IntelliTect . TestTools . Console . ConsoleAssert . Expect (
15+ expected , Program . Main ) ;
16+ }
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2+
3+ namespace AddisonWesley . Michaelis . EssentialCSharp . Chapter04 . Listing04_27 . Tests
4+ {
5+ [ TestClass ]
6+ public class ProgramTests
7+ {
8+ [ TestMethod ]
9+ public void MainTest ( )
10+ {
11+ const string expected = @"Enter the number of players (1 or 2):" ;
12+
13+ IntelliTect . TestTools . Console . ConsoleAssert . Expect (
14+ expected , Program . Main ) ;
15+ }
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments