GildedRose-Refactoring-Kata/cpp/test/cpp_catch2_unittest/GildedRoseCatch2UnitTests.cc

13 lines
357 B
C++

#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch2/catch_all.hpp"
#include "GildedRose.h"
TEST_CASE("GildedRoseUnitTest", "Foo")
{
vector<Item> items;
items.push_back(Item("Foo", 0, 0));
GildedRose app(items);
app.updateQuality();
REQUIRE("fixme" == app.items[0].name);
}