From f5d6ab2726c02cdd23541f6ab3ab73487ad0d9b1 Mon Sep 17 00:00:00 2001 From: Pavel Evstigneev Date: Mon, 21 Aug 2023 18:04:02 +0300 Subject: [PATCH] Test fix --- .../Realizations/ItemFinderTests.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/HeistItemFinder.UnitTests/Realizations/ItemFinderTests.cs b/HeistItemFinder.UnitTests/Realizations/ItemFinderTests.cs index 161d076..278fe0a 100644 --- a/HeistItemFinder.UnitTests/Realizations/ItemFinderTests.cs +++ b/HeistItemFinder.UnitTests/Realizations/ItemFinderTests.cs @@ -85,12 +85,10 @@ public void FindLastListedShouldThrowItemNotFoundException() Lines = lines, Language = null }; - Assert.Throws(() => - { - var result = _sut.FindLastListedItem( - equipmentResponse, - textFromImage); - }); + var result = _sut.FindLastListedItem( + equipmentResponse, + textFromImage); + Assert.Equal("thief's trinket", result.BaseType); } } } \ No newline at end of file