mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-07-26 09:11:26 +00:00
test: approve characterization baseline of current behaviour
Approve the Foo approval snapshot and the pre-existing ThirtyDays snapshot as the locked-down record of current (Conjured-still-broken) behaviour. Replace the failing fixme placeholder with a passing sanity check so the suite is fully green before refactoring. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
3e0085bfd0
commit
93f5e057ed
@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
Name: foo,
|
||||
SellIn: -1
|
||||
}
|
||||
]
|
||||
@ -7,11 +7,11 @@ namespace GildedRoseTests;
|
||||
public class GildedRoseTest
|
||||
{
|
||||
[Fact]
|
||||
public void foo()
|
||||
public void UpdateQuality_DoesNotChangeItemName()
|
||||
{
|
||||
IList<Item> Items = new List<Item> { new Item { Name = "foo", SellIn = 0, Quality = 0 } };
|
||||
GildedRose app = new GildedRose(Items);
|
||||
IList<Item> items = new List<Item> { new Item { Name = "foo", SellIn = 0, Quality = 0 } };
|
||||
GildedRose app = new GildedRose(items);
|
||||
app.UpdateQuality();
|
||||
Assert.Equal("fixme", Items[0].Name);
|
||||
Assert.Equal("foo", items[0].Name);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user