GildedRose-Refactoring-Kata/cpp/test/cpp_googletest_unittest/GildedRoseGoogletestUnitTests.cc
tbeu 73a51ef14f Fix C++ code smells
* Move "using namespace std;" from header to module file (to no longer pollute the global namespace).
* Fix inconsistency of having namespace prefix in test code.
* Add include guard to GildedRose.h.
* Avoid std::endl.
* Have consistent white-space.
2025-02-12 20:56:22 +01:00

11 lines
244 B
C++

#include <gtest/gtest.h>
#include "GildedRose.h"
TEST(GildedRoseTest, Foo) {
std::vector<Item> items;
items.push_back(Item("Foo", 0, 0));
GildedRose app(items);
app.updateQuality();
EXPECT_EQ("fixme", app.items[0].name);
}