From 144c13c5e4d74afa6d40ccb310c091356849d59c Mon Sep 17 00:00:00 2001 From: Thanos Papathanasiou Date: Tue, 23 Jun 2015 22:44:49 +0300 Subject: [PATCH] Completed the four user stories The acceptance tests for the four user stories are located in the ContentManagerTests file. All other unit tests are found in the TextAnalyserTests.cs I did not use Moq since the code was simple enough It wasn't needed. The test took more than one hour to complete. When executed the program does the following: 1. Scans the text for the user 2. Adds the word 'people' to the bad words list and scans the text again 3. Shows the filtered text 4. Removes 'people' from the bad words list and shows the filtered text again 5. Shows the non-filtered text --- .../ContentConsole.Test.Unit.csproj | 8 ++ .../ContentManagerTests.cs | 81 +++++++++++++++++ ContentConsole.Test.Unit/TextAnalyserTests.cs | 83 +++++++++++++++++ ContentConsole/ContentConsole.csproj | 2 + ContentConsole/ContentManager.cs | 35 ++++++++ ContentConsole/Program.cs | 71 +++++++++------ ContentConsole/TextAnalyser.cs | 89 +++++++++++++++++++ 7 files changed, 340 insertions(+), 29 deletions(-) create mode 100644 ContentConsole.Test.Unit/ContentManagerTests.cs create mode 100644 ContentConsole.Test.Unit/TextAnalyserTests.cs create mode 100644 ContentConsole/ContentManager.cs create mode 100644 ContentConsole/TextAnalyser.cs diff --git a/ContentConsole.Test.Unit/ContentConsole.Test.Unit.csproj b/ContentConsole.Test.Unit/ContentConsole.Test.Unit.csproj index f1b05c0..583b46b 100644 --- a/ContentConsole.Test.Unit/ContentConsole.Test.Unit.csproj +++ b/ContentConsole.Test.Unit/ContentConsole.Test.Unit.csproj @@ -47,11 +47,19 @@ + + + + + {70da2b36-ebf3-4438-9f95-ecc828a64527} + ContentConsole + +