public void SayHello_WithNoName_ReturnsCorrectGreeting(string name) { var greeter = new GrumpyGreeter(); var actual = greeter.SayHello(name); var expected = "Get lost, loser."; Assert.Equal(expected, actual); }
public void SayHello_WithName_ReturnsCorrectGreeting() { var greeter = new GrumpyGreeter(); var name = "Foo"; var expected = $"Get lost, {name}."; var actual = greeter.SayHello(name); Assert.Equal(expected, actual); }