#include "../common/text.h"
#include "../common/colour.h"
#include "../common/monthviewgen.h"
-
-TEST(CommonFunctions, FileTests){
+#include <gtest/gtest.h>
+
+class CommonFunctionsTests : public ::testing::Test
+{
+private:
+ virtual void SetUp()
+ {
+ }
+
+ virtual void TearDown()
+ {
+ }
+};
+
+TEST_F(CommonFunctionsTests, FileTests){
ASSERT_EQ(false, FileExists("iCalendarEvent-Missing.vcf"));
ASSERT_EQ(true, FileExists("iCalendarEvent-InvalidPermissions.vcf"));
}
-TEST(CommonFunctions, ProcessTextVectorsTests){
+TEST_F(CommonFunctionsTests, ProcessTextVectorsTests){
// Setup the objects to be used for processing.
}
-TEST(CommonFunctions, SplitValuesTests){
+TEST_F(CommonFunctionsTests, SplitValuesTests){
map<string, string> textExample1TestResult;
}
-TEST(CommonFunctions, SplitNameValueTests){
+TEST_F(CommonFunctionsTests, SplitNameValueTests){
PropertyNameValue nameValueResult;
}
-TEST(CommonFunctions, HexToInt){
+TEST_F(CommonFunctionsTests, HexToInt){
string value1 = "10"; // 16
string value2 = "50"; // 80
}
-TEST(CommonFunctions, SplitPathFilename){
+TEST_F(CommonFunctionsTests, SplitPathFilename){
// Setup the file split.
}
-TEST(CommonFunctions, ColourStruct){
+TEST_F(CommonFunctionsTests, ColourStruct){
Colour colour1;
Colour colour2;
ASSERT_EQ(32, colour8.alpha);
}
-TEST(CommonFunctions, OutputText){
+TEST_F(CommonFunctionsTests, OutputText){
string inputText1 = "This is an example text.";
string outputText1 = "This is an example text.";
}
-TEST(CommonFunctions, PreviousMonthNumberofDays){
+TEST_F(CommonFunctionsTests, PreviousMonthNumberofDays){
// Test the year 2015 (does not have a leap year).
}
-TEST(CommonFunctions, monthViewGenerator){
+TEST_F(CommonFunctionsTests, monthViewGenerator){
XCCalendarMonthViewGrid monthView = GenerateMonthGrid(6, 2016);