mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
13 lines
357 B
C++
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);
|
|
}
|