|
|
@@ -3,6 +3,9 @@ |
|
|
|
|
|
|
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework; |
|
|
|
#define FileName_1 "../code/config/1_ContainsNearbyDuplicate.ini" |
|
|
|
#define FileName_2 "../code/config/2_ExcelSheetColumnTiTle.ini" |
|
|
|
|
|
|
|
|
|
|
|
namespace test1 |
|
|
|
{ |
|
|
|
TEST_CLASS(UnitTest_1) |
|
|
@@ -27,12 +30,19 @@ namespace test1 |
|
|
|
} |
|
|
|
namespace test2 |
|
|
|
{ |
|
|
|
TEST_CLASS(test) |
|
|
|
TEST_CLASS(UnitTest_1) |
|
|
|
{ |
|
|
|
public: |
|
|
|
|
|
|
|
TEST_METHOD(TestMethod1) |
|
|
|
TEST_METHOD(TestMethode1) |
|
|
|
{ |
|
|
|
char Section_Name[100][10] = { 0 }; |
|
|
|
int Section_Count = CalcCount(100, Section_Name, FileName_2); |
|
|
|
CString Na, nExpect; |
|
|
|
for (int i = 0; i < Section_Count; i++) { |
|
|
|
GetPrivateProfileString(Section_Name[i], "Na", " ", Na.GetBuffer(20), 20, FileName_2); |
|
|
|
GetPrivateProfileString(Section_Name[i], "nExpect", " ", nExpect.GetBuffer(100), 100, FileName_2); |
|
|
|
char* nReal = ExcelSheetColumnTitle(_ttoi(Na)); |
|
|
|
Assert::AreEqual(nReal, nExpect); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|