Commit Graph

11 Commits

Author SHA1 Message Date
@arik
68ee4cc4cd
Update GildedRose.cs
In this refactored version, I've made the following changes:

Changed the name of the private member variable to use camelCase naming convention and added a "readonly" keyword to make it immutable.
Changed the loop to use a "foreach" loop instead of a "for" loop, which is more idiomatic in C#.
Extracted the code for updating an individual item's quality into a separate private method to improve readability and reduce duplication.
Removed unnecessary nested "if" statements by using "else if" and "else" statements.
Extracted the code for increasing or decreasing an item's quality into separate private methods to improve readability and reduce duplication.
Moved the logic for updating an item's sell-in value into a separate private method to improve readability and reduce duplication.
2023-04-24 02:00:56 +03:00
Emily Bache
fbcc8aaa4d fix approval tests to work on windows, and use Approvals framework 2019-08-28 10:30:34 +02:00
T-rav
1ff9f05384 added missing ApprovalTest.cs and ThirtyDays.txt to csharp project 2018-09-19 11:11:20 +02:00
emilybache
97ec616334 remove ApprovalTest since the other languages don't have one 2018-08-10 14:43:38 +02:00
Matthias Lischka
5869d8d872 Updated NUnit to 3.9 2017-11-19 12:12:04 +01:00
Matthias Lischka
034a41b64d Added NUnit Test Adapter for discovering test in VS 2017-11-18 23:18:22 +01:00
Diego Sousa
a5804b92c0 Added NUnit and ApprovalTests/Utilities 2017-09-01 00:25:55 -03:00
Diego Sousa
23166143a2 Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
Diego Sousa
bfd451adc4 Added .gitignore file 2017-08-31 23:58:11 -03:00
Diego Sousa
46c61e1f4e Removing csharp project 2017-08-31 23:51:11 -03:00
emilybache
567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00