You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- StringProcessor.Tests - the unit test project (using xUnit).
12
+
13
+
# Tasks
14
+
15
+
1. Write code in the main project to ensure that the four unit tests pass.
16
+
**Note: for the purposes of this test, a word includes punctuation. "I'm" is a single word and "that." is five characters long (including the full-stop).**
17
+
18
+
19
+
2. Add a project and code to the solution to fulfil the following requirement:
20
+
> GIVEN a text string
21
+
> WHEN it is sent to a HTTP API endpoint
22
+
> THEN JSON representing the populated StringStatsModel is returned
23
+
24
+
Ensure that you can test this via your preferred method (Postman, integration test or webpage, etc)
25
+
26
+
27
+
3. (Optional / for bonus points) Write a fifth unit test which tests very large input to the StringStatsProcessor.Run(string) method.
0 commit comments