Utils::Testing::FixedSizeByteArrayTest Class Reference

Inherits TestFixture.

Inheritance diagram for Utils::Testing::FixedSizeByteArrayTest:

Inheritance graph
[legend]
Collaboration diagram for Utils::Testing::FixedSizeByteArrayTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

FixedSizeByteArray template class testing suite.

Note:
Null array means an array created using the default ctor.

Definition at line 34 of file FixedSizeByteArrayTest.cpp.

Public Member Functions

void testDefaultCtorCreatesNullArray ()
 Verifies that the default ctor will create an Null array.
void testDefaultCtorCreatingArrayWithZeroSize ()
 Verifies that an array with zero size will be created correctly.
void testCtorCreatesCorrectArray ()
void testCtorCreatingArrayWithZeroSize ()
void testCompareTwoEqualNonNullArrays ()
 Verifies operators ==,!=,<,<=,>,>= correctness on non-Null arrays.
void testCompareTwoEqualNullArrays ()
 Verifies operators ==,!=,<,<=,>,>= correctness on Null arrays.
void testCompareTwoDifferentNonNullArrays ()
 Verifies operators ==,!=,<,<=,>,>= on different non-Null arrays.
void testCompareNullAndNonNullArrays ()
 Verifies operators ==,!=,<,<=,>,>= on Null with non-Null arrays.
void testCopyCtor ()
 The copy ctor should create equal objects.
void testAssignment ()
 After assignment the objects should be equal.
void testModifyingACopyDoesNotChangeTheOriginal ()
 Lazy copying is used. Verify that a copy is made prior to modification.
void testSizeFunction ()
 Verifies that size() function works correctly.
void testSubscriptOperator ()
 Verifies that subscript operator works correctly.

Private Member Functions

 CPPUNIT_TEST_SUITE (FixedSizeByteArrayTest)
 CPPUNIT_TEST (testDefaultCtorCreatesNullArray)
 CPPUNIT_TEST (testDefaultCtorCreatingArrayWithZeroSize)
 CPPUNIT_TEST (testCtorCreatesCorrectArray)
 CPPUNIT_TEST (testCtorCreatingArrayWithZeroSize)
 CPPUNIT_TEST (testCompareTwoEqualNonNullArrays)
 CPPUNIT_TEST (testCompareTwoEqualNullArrays)
 CPPUNIT_TEST (testCompareTwoDifferentNonNullArrays)
 CPPUNIT_TEST (testCompareNullAndNonNullArrays)
 CPPUNIT_TEST (testCopyCtor)
 CPPUNIT_TEST (testAssignment)
 CPPUNIT_TEST (testModifyingACopyDoesNotChangeTheOriginal)
 CPPUNIT_TEST (testSizeFunction)
 CPPUNIT_TEST (testSubscriptOperator)
 CPPUNIT_TEST_SUITE_END ()


Member Function Documentation

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testSubscriptOperator   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testSizeFunction   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testModifyingACopyDoesNotChangeTheOriginal   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testAssignment   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCopyCtor   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCompareNullAndNonNullArrays   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCompareTwoDifferentNonNullArrays   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCompareTwoEqualNullArrays   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCompareTwoEqualNonNullArrays   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCtorCreatingArrayWithZeroSize   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testCtorCreatesCorrectArray   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testDefaultCtorCreatingArrayWithZeroSize   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST testDefaultCtorCreatesNullArray   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST_SUITE FixedSizeByteArrayTest   )  [private]
 

Utils::Testing::FixedSizeByteArrayTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Utils::Testing::FixedSizeByteArrayTest::testAssignment  )  [inline]
 

After assignment the objects should be equal.

Definition at line 153 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCompareNullAndNonNullArrays  )  [inline]
 

Verifies operators ==,!=,<,<=,>,>= on Null with non-Null arrays.

Definition at line 130 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCompareTwoDifferentNonNullArrays  )  [inline]
 

Verifies operators ==,!=,<,<=,>,>= on different non-Null arrays.

Definition at line 116 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCompareTwoEqualNonNullArrays  )  [inline]
 

Verifies operators ==,!=,<,<=,>,>= correctness on non-Null arrays.

Definition at line 89 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCompareTwoEqualNullArrays  )  [inline]
 

Verifies operators ==,!=,<,<=,>,>= correctness on Null arrays.

Definition at line 103 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCopyCtor  )  [inline]
 

The copy ctor should create equal objects.

Definition at line 144 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCtorCreatesCorrectArray  )  [inline]
 

Verifies that an array created by non-default ctor will be created correctly.

Definition at line 71 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testCtorCreatingArrayWithZeroSize  )  [inline]
 

Verifies that an array created by non-default ctor with zero size will be created correctly.

Definition at line 81 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testDefaultCtorCreatesNullArray  )  [inline]
 

Verifies that the default ctor will create an Null array.

Definition at line 54 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testDefaultCtorCreatingArrayWithZeroSize  )  [inline]
 

Verifies that an array with zero size will be created correctly.

Definition at line 61 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testModifyingACopyDoesNotChangeTheOriginal  )  [inline]
 

Lazy copying is used. Verify that a copy is made prior to modification.

Definition at line 164 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testSizeFunction  )  [inline]
 

Verifies that size() function works correctly.

Definition at line 176 of file FixedSizeByteArrayTest.cpp.

void Utils::Testing::FixedSizeByteArrayTest::testSubscriptOperator  )  [inline]
 

Verifies that subscript operator works correctly.

Definition at line 185 of file FixedSizeByteArrayTest.cpp.


The documentation for this class was generated from the following file: