Greeting Service Personalises Greeting Skips Unknown Locale / en - US

Passed

TestGreetingService_PersonalisesGreeting_SkipsUnknownLocale tests that the service

skips producing a greeting for locales that are not yet supported.

Specification
Given a registered user named tc user name with locale tc locale
Skipping this one if locale is not english tc locale "locale % s is not yet supported" tc locale
When a greeting is requested
Then
Assert that captured "greeting" is equal to "hello alice !"
Result
PASSED
locale en-US
userName Alice
Hello, Alice!

Greeting Service Personalises Greeting Skips Unknown Locale / fr - FR

Skipped

TestGreetingService_PersonalisesGreeting_SkipsUnknownLocale tests that the service

skips producing a greeting for locales that are not yet supported.

Specification
Given a registered user named tc user name with locale tc locale
Skipping this one if locale is not english tc locale "locale % s is not yet supported" tc locale
When a greeting is requested
Then
Assert that captured "greeting" is equal to "hello alice !"
Result
SKIPPED
locale fr-FR is not yet supported
locale fr-FR
userName Marie

Greeting Service Personalises Greeting Non Default Param Name

Passed

TestGreetingService_PersonalisesGreeting_NonDefaultParamName verifies that gogiven

correctly parses test functions that use non-standard testing parameter names.

Specification
Given a registered user named "alice"
When a greeting is requested
Then
Noting that the greeting should address the user by their registered name
Assert that captured "greeting" is equal to "hello alice !"
Result
PASSED
userName Alice
Hello, Alice!

Greeting Service Returns Default Greeting

Passed

TestGreetingService_ReturnsDefaultGreeting verifies that the service returns a

default greeting message when no user context is provided.

Specification
When a default greeting is requested
Then
Assert that captured "greeting" is equal to "hello world !"
Result
PASSED
Hello, World!

Greeting Service Personalises Greeting

Passed

TestGreetingService_PersonalisesGreeting verifies that the greeting service

generates a personalised message for a registered user.

Specification
Given a registered user named "alice"
When a greeting is requested
Then
Noting that the greeting should address the user by their registered name
Assert that captured "greeting" is equal to "hello alice !"
Result
PASSED
userName Alice
Hello, Alice!

Greeting Service Personalises Greeting For Many Users

Passed

TestGreetingService_PersonalisesGreeting_ForManyUsers tests that the greeting service

produces the correct personalised greeting for a range of user names.

Comments on new lines will be split into paragraph sections.

Each test case verifies that the greeting contains exactly the expected number of characters.

Specification
Given a registered user named tc user name
When a greeting is requested
Then
Noting that the greeting length should match the length of the formatted output
Assert that captured "greeting" has length tc expected length
Result
PASSED
userName Li
Hello, Li!

Greeting Service Personalises Greeting For Many Users

Passed

TestGreetingService_PersonalisesGreeting_ForManyUsers tests that the greeting service

produces the correct personalised greeting for a range of user names.

Comments on new lines will be split into paragraph sections.

Each test case verifies that the greeting contains exactly the expected number of characters.

Specification
Given a registered user named tc user name
When a greeting is requested
Then
Noting that the greeting length should match the length of the formatted output
Assert that captured "greeting" has length tc expected length
Result
PASSED
userName Alice
Hello, Alice!