-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
376 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Class { | ||
#name : #GameyeCollectionFactoryV5Test, | ||
#superclass : #GameyeCollectionFactoryTest, | ||
#category : #'Gameye-Tests-Core' | ||
} | ||
|
||
{ #category : #samples } | ||
GameyeCollectionFactoryV5Test class >> exportedSpreadsheetSampleContentV5_1System [ | ||
"self exportedSpreadsheetSampleContentV5_1System" | ||
|
||
^self exportedSpreadsheetSampleHeadContentV5, ' | ||
"Sega Saturn","Systems","Owned","Sega Saturn Console","United Kingdom","Official","Missing Field","Missing Field","18/07/2022","Boxed","88.91","169.46","381.99","156.75","139.92","10","?","10"," "," ","","✔️ 📦",' | ||
] | ||
|
||
{ #category : #samples } | ||
GameyeCollectionFactoryV5Test class >> exportedSpreadsheetSampleContentV5_1ToyToLife [ | ||
|
||
^self exportedSpreadsheetSampleHeadContentV5, ' | ||
"amiibo","Toys To Life","Owned","Zelda - Breath of Wild","","Official","Nintendo","Missing Field","19/04/2022","Loose","24.40","?","29.41","24.40","15.00","10","?","?"," "," ","","",' | ||
] | ||
|
||
{ #category : #samples } | ||
GameyeCollectionFactoryV5Test class >> exportedSpreadsheetSampleContentV5_Empty [ | ||
"This sample contains some frequently generated cases not easy to read/parse or exceptions due to collection evolution" | ||
|
||
^self exportedSpreadsheetSampleHeadContentV5 | ||
] | ||
|
||
{ #category : #accessing } | ||
GameyeCollectionFactoryV5Test class >> exportedSpreadsheetSampleFileReferenceV5_Empty [ | ||
<script:'self exportedSpreadsheetSampleFileReferenceV5_Empty inspect'> | ||
|
||
^self exportedSpreadsheetSampleFileReference: self exportedSpreadsheetSampleContentV5_Empty | ||
] | ||
|
||
{ #category : #accessing } | ||
GameyeCollectionFactoryV5Test class >> exportedSpreadsheetSampleHeadContentV5 [ | ||
"This sample contains columns head" | ||
|
||
^'Platform,Category,UserRecordType,Title,Country,ReleaseType,Publisher,Developer,CreatedAt,Ownership,PriceLoose,PriceCIB,PriceNew,YourPrice,PricePaid,ItemCondition,BoxCondition,ManualCondition,Beat,PlayedCompletion,Notes,Tags' | ||
] | ||
|
||
{ #category : #running } | ||
GameyeCollectionFactoryV5Test >> setUp [ | ||
|
||
super setUp. | ||
gameyeVersion := GameyeVersion v5. | ||
] | ||
|
||
{ #category : #running } | ||
GameyeCollectionFactoryV5Test >> testCreateCollectionFromExportedSpreadsheet_1System [ | ||
|
||
| collection collectible | | ||
datas := GameyeCollectionFactory createCollectionsFromExportedSpreadsheet: (self class | ||
exportedSpreadsheetSampleFileReference: self class exportedSpreadsheetSampleContentV5_1System). | ||
|
||
self createCollectionFromExportedSpreadsheet_1System. | ||
|
||
collection := datas at: GameyeCollection owned. | ||
collectible := collection systemsCollectibles first. | ||
self assert: collectible platform equals: 'Sega Saturn'. | ||
self assert: collectible title equals: 'Sega Saturn Console'. | ||
self assert: collectible country equals: #'United Kingdom'. | ||
self assert: collectible releaseType equals: #'Official'. | ||
self assert: collectible tags notNil. | ||
] | ||
|
||
{ #category : #running } | ||
GameyeCollectionFactoryV5Test >> testCreateCollectionFromExportedSpreadsheet_1ToyToLife [ | ||
|
||
datas := GameyeCollectionFactory createCollectionsFromExportedSpreadsheet: (self class | ||
exportedSpreadsheetSampleFileReference: self class exportedSpreadsheetSampleContentV5_1ToyToLife). | ||
|
||
self createCollectionFromExportedSpreadsheet_1ToyToLife. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Class { | ||
#name : #GameyeAccessory, | ||
#superclass : #GameyePeripheral, | ||
#category : #'Gameye-Model' | ||
} | ||
|
||
{ #category : #accessing } | ||
GameyeAccessory class >> type [ | ||
|
||
^ #'Game Accessories' | ||
] | ||
|
||
{ #category : #testing } | ||
GameyeAccessory >> isAccessory [ | ||
|
||
^ true | ||
] |
Oops, something went wrong.