+ // Given
+
+ mapExistsStatus = false;
+ itemIndex = 1;
+
+ // When
+
+ mapExistsStatus = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapExistsStatus);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs2WhenMapDataExistsIsCalledThenConfirmItemIndex2DoesExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 2;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs3WhenMapDataExistsIsCalledThenConfirmItemIndex3DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 3;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs5WhenMapDataExistsIsCalledThenConfirmItemIndex5DoesExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 5;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs6WhenMapDataExistsIsCalledThenConfirmItemIndex6DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 6;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs499WhenMapDataExistsIsCalledThenConfirmItemIndex499DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 499;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs500WhenMapDataExistsIsCalledThenConfirmItemIndex500DoesExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 500;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs501WhenMapDataExistsIsCalledThenConfirmItemIndex501DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 501;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs2414WhenMapDataExistsIsCalledThenConfirmItemIndex2414DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 2414;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs2415WhenMapDataExistsIsCalledThenConfirmItemIndex2415DoesExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 2415;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs2416WhenMapDataExistsIsCalledThenConfirmItemIndex2416DoesntExist){
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 2416;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &MapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+