GildedRose-Refactoring-Kata/GildedRose/csharp/GildedRoseTest.cs
emilybache 0319c8a5f7 I changed the starting position for the C# version to match the other translations, especially the Java version. This means I've actually done a small amount of refactoring
already compared with the original form of the kata, and made it easier to get going with
writing tests. It also makes it easier to do text-based approval testing with this code.
2013-03-20 09:33:53 +01:00

20 lines
389 B
C#

using System;
using NUnit.Framework;
using System.Collections.Generic;
namespace GildedRose
{
[TestFixture()]
public class GildedRoseTest
{
[Test()]
public void foo() {
IList<Item> Items = new List<Item> { new Item{Name = "foo", SellIn = 0, Quality = 0} };
GildedRose app = new GildedRose(Items);
app.UpdateQuality();
Assert.AreEqual("fixme", Items[0].Name);
}
}
}