File tree 2 files changed +4
-21
lines changed
2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 1
- public class HelloWorld
1
+ public static class HelloWorld
2
2
{
3
- public static string Hello ( string name )
4
- {
5
- return $ "Hello, { name ?? "World" } !";
6
- }
3
+ public static string Hello ( ) => "Hello, World!" ;
7
4
}
Original file line number Diff line number Diff line change 4
4
public class HelloWorldTest
5
5
{
6
6
[ Test ]
7
- public void No_name ( )
7
+ public void Say_hi ( )
8
8
{
9
- Assert . That ( HelloWorld . Hello ( null ) , Is . EqualTo ( "Hello, World!" ) ) ;
10
- }
11
-
12
- [ Ignore ( "Remove to run test" ) ]
13
- [ Test ]
14
- public void Sample_name ( )
15
- {
16
- Assert . That ( HelloWorld . Hello ( "Alice" ) , Is . EqualTo ( "Hello, Alice!" ) ) ;
17
- }
18
-
19
- [ Ignore ( "Remove to run test" ) ]
20
- [ Test ]
21
- public void Other_sample_name ( )
22
- {
23
- Assert . That ( HelloWorld . Hello ( "Bob" ) , Is . EqualTo ( "Hello, Bob!" ) ) ;
9
+ Assert . That ( HelloWorld . Hello ( ) , Is . EqualTo ( "Hello, World!" ) ) ;
24
10
}
25
11
}
You can’t perform that action at this time.
0 commit comments