From 93f5e057ed1036c8d0f08398333e2c7989218df6 Mon Sep 17 00:00:00 2001 From: Artur Goloyad Date: Sat, 25 Jul 2026 20:47:50 +0200 Subject: [PATCH] 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 --- .../GildedRoseTests/ApprovalTest.Foo.verified.txt | 6 ++++++ csharp.xUnit/GildedRoseTests/GildedRoseTest.cs | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 csharp.xUnit/GildedRoseTests/ApprovalTest.Foo.verified.txt diff --git a/csharp.xUnit/GildedRoseTests/ApprovalTest.Foo.verified.txt b/csharp.xUnit/GildedRoseTests/ApprovalTest.Foo.verified.txt new file mode 100644 index 00000000..c79d294c --- /dev/null +++ b/csharp.xUnit/GildedRoseTests/ApprovalTest.Foo.verified.txt @@ -0,0 +1,6 @@ +[ + { + Name: foo, + SellIn: -1 + } +] \ No newline at end of file diff --git a/csharp.xUnit/GildedRoseTests/GildedRoseTest.cs b/csharp.xUnit/GildedRoseTests/GildedRoseTest.cs index 63fd7b1b..c0c793e9 100644 --- a/csharp.xUnit/GildedRoseTests/GildedRoseTest.cs +++ b/csharp.xUnit/GildedRoseTests/GildedRoseTest.cs @@ -7,11 +7,11 @@ namespace GildedRoseTests; public class GildedRoseTest { [Fact] - public void foo() + public void UpdateQuality_DoesNotChangeItemName() { - IList Items = new List { new Item { Name = "foo", SellIn = 0, Quality = 0 } }; - GildedRose app = new GildedRose(Items); + IList items = new List { 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); } } \ No newline at end of file