nhu313 6 лет назад
Родитель
Сommit
ea9c7865b0
1 измененных файлов: 4 добавлений и 44 удалений
  1. 4
    44
      readme.md

+ 4
- 44
readme.md Просмотреть файл

@@ -22,50 +22,10 @@
22 22
 2. Select `Run all with test coverage`
23 23
 3. Note a window pop up which display which line is covered
24 24
 
25
-# Part 1 - Original Description of the Gilded Rose
26
-
27
-Hi and welcome to team Gilded Rose. As you know, we are a small inn
28
-with a prime location in a prominent city run by a friendly innkeeper
29
-named Allison. We also buy and sell only the finest
30
-goods. Unfortunately, our goods are constantly degrading in quality as
31
-they approach their sell by date. We have a system in place that
32
-updates our inventory for us. It was developed by a no-nonsense type
33
-named Leeroy, who has moved on to new adventures. Your task is to add
34
-the new feature to our system so that we can begin selling a new
35
-category of items. But before you can add a new feature, you need to add a test
36
-that provides 100% line coverage for the `Inventory` class.
37
-
38
-
39
-First an introduction to our system:
40
-
41
-- All items have a SellIn value which denotes the number of days we
42
-  have to sell the item
43
-- All items have a Quality value which denotes how valuable the item
44
-  is
45
-- At the end of each day our system lowers both values for every item
46
-
47
-Pretty simple, right? Well this is where it gets interesting:
48
-
49
-  - Once the sell by date has passed, Quality degrades twice as fast
50
-  - The Quality of an item is never negative
51
-  - "Aged Brie" actually increases in Quality the older it gets
52
-  - The Quality of an item is never more than 50
53
-  - "Sulfuras", being a legendary item, never has to be sold or
54
-    decreases in Quality
55
-  - "Backstage passes", like aged brie, increases in Quality as it's
56
-    SellIn value approaches; Quality increases by 2 when there are 10
57
-    days or less and by 3 when there are 5 days or less but Quality
58
-    drops to 0 after the concert
59
-
60
-Just for clarification, an item can never have its Quality increase
61
-above 50, however "Sulfuras" is a legendary item and as such its
62
-Quality is 80 and it never alters.
63
-
64
-DO NOT alter the Item class or Items property as those belong to the goblin
65
-in the corner who will insta-rage and one-shot you as he doesn't
66
-believe in shared code ownership (you can make the UpdateQuality
67
-method and Items property static if you like, we'll cover for
68
-you).
25
+# Part 1 - Add tests
26
+Add test to cover the code 100%.
27
+
28
+DO NOT alter the Item class or Items property.
69 29
 
70 30
 ## Part 2 - Refactor the code
71 31