mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
make c sharp version work together with texttests
This commit is contained in:
parent
df0d688718
commit
2e5a38d000
@ -17,19 +17,42 @@ namespace GildedRose.Console
|
|||||||
new Item {Name = "Aged Brie", SellIn = 2, Quality = 0},
|
new Item {Name = "Aged Brie", SellIn = 2, Quality = 0},
|
||||||
new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7},
|
new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7},
|
||||||
new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80},
|
new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80},
|
||||||
|
new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = -1, Quality = 80},
|
||||||
new Item
|
new Item
|
||||||
{
|
{
|
||||||
Name = "Backstage passes to a TAFKAL80ETC concert",
|
Name = "Backstage passes to a TAFKAL80ETC concert",
|
||||||
SellIn = 15,
|
SellIn = 15,
|
||||||
Quality = 20
|
Quality = 20
|
||||||
},
|
},
|
||||||
|
new Item
|
||||||
|
{
|
||||||
|
Name = "Backstage passes to a TAFKAL80ETC concert",
|
||||||
|
SellIn = 10,
|
||||||
|
Quality = 49
|
||||||
|
},
|
||||||
|
new Item
|
||||||
|
{
|
||||||
|
Name = "Backstage passes to a TAFKAL80ETC concert",
|
||||||
|
SellIn = 5,
|
||||||
|
Quality = 49
|
||||||
|
},
|
||||||
|
// this conjured item does not work properly yet
|
||||||
new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6}
|
new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
app.UpdateQuality();
|
for (var i = 0; i < 31; i++)
|
||||||
|
{
|
||||||
|
System.Console.WriteLine("-------- day " + i + " --------");
|
||||||
|
System.Console.WriteLine("name, sellIn, quality");
|
||||||
|
for (var j = 0; j < app.Items.Count; j++)
|
||||||
|
{
|
||||||
|
System.Console.WriteLine(app.Items[j].Name + ", " + app.Items[j].SellIn + ", " + app.Items[j].Quality);
|
||||||
|
}
|
||||||
|
System.Console.WriteLine("");
|
||||||
|
app.UpdateQuality();
|
||||||
|
}
|
||||||
System.Console.ReadKey();
|
System.Console.ReadKey();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,8 +16,11 @@ default_checkout:/home/emily/workspace/Refactoring-Katas/GildedRose
|
|||||||
#executable:${TEXTTEST_CHECKOUT}/cpp/GildedRoseTextTests
|
#executable:${TEXTTEST_CHECKOUT}/cpp/GildedRoseTextTests
|
||||||
|
|
||||||
# Settings for the Ruby version
|
# Settings for the Ruby version
|
||||||
executable:${TEXTTEST_CHECKOUT}/ruby/main.rb
|
#executable:${TEXTTEST_CHECKOUT}/ruby/main.rb
|
||||||
interpreter:ruby
|
#interpreter:ruby
|
||||||
|
|
||||||
|
# Settings for the C# version
|
||||||
|
executable:${TEXTTEST_CHECKOUT}/csharp/Program.exe
|
||||||
|
|
||||||
# turn on one of these if you prefer them to notepad or emacs.
|
# turn on one of these if you prefer them to notepad or emacs.
|
||||||
[view_program]
|
[view_program]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user