[InlineAutoData("Rarity: " + "\n" + "--------" + "\n" + "--------")] // Do it with linux and windows line endings just in case. public void Item_checker_allows_good_text(string testText, ItemTextChecker sut) { sut.LooksLikeGameText(testText).Should().BeTrue(); }
[InlineAutoData("Rarity: " + "\r\n" + "--------")] // This example very close to the loose heuristic we use so should fail public void Item_checker_ignores_bad_text(string testText, ItemTextChecker sut) { sut.LooksLikeGameText(testText).Should().BeFalse(); }