minor fix on cell position calculation to display on UI #17
GitHub Actions / Dotnet Tests result
succeeded
Jun 6, 2024 in 0s
74 passed, 0 failed and 0 skipped
✅ Match3Maker.Tests/TestResults/test-results.trx
74 tests were completed in 1s with 74 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Match3MakerTests.BoardTests | 31✅ | 244ms | ||
Match3MakerTests.GridCellTests | 14✅ | 20ms | ||
Match3MakerTests.PieceTests | 4✅ | 55ms | ||
Match3MakerTests.PieceWeightGeneratorTests | 2✅ | 47ms | ||
Match3MakerTests.SequenceFinderTests | 16✅ | 92ms | ||
Match3MakerTests.SequenceTests | 7✅ | 23ms |
✅ Match3MakerTests.BoardTests
✅ Can_Be_Created_With_Static_Constructor
✅ Grid_Dimensions_Are_Clamped_ToMin
✅ Grid_Dimensions_Are_Set_Correctly_On_New_Board
✅ Should_Add_Available_Pieces
✅ Should_Assign_Neighbours_On_Prepared_Grid_Cells
✅ Should_Assign_Preselected_Pieces_When_Fill_The_Board
✅ Should_Be_Able_To_Generate_Grid_Cells_Based_On_Size
✅ Should_Be_Able_To_Overwrite_Grid_Cells_When_Size_Is_Changed_And_Overwrite_Is_True
✅ Should_Detect_Border_And_Corners
✅ Should_Find_The_GridCell_Related_To_Piece
✅ Should_Not_Fill_The_Board_When_Grid_Cells_Are_Empty
✅ Should_Not_Have_Matches_When_Fill_Board_And_No_Matches_Is_True
✅ Should_Raise_Consumed_Sequence_Event_When_Consumed
✅ Should_Raise_Prepared_Board_Event_When_Prepared_Grid_Cells
✅ Should_Raise_Spent_All_Movements_Event_Once_When_Remaining_Moves_Reach_Zero
✅ Should_Remove_Available_Pieces
✅ Should_Return_Adjacent_Cells_Or_Null_When_Requested
✅ Should_Return_Bottoms_Cells_From_Selected_Cell
✅ Should_Return_Empty_Cells_From_Column
✅ Should_Return_Empty_Cells_From_Row
✅ Should_Return_Left_Cells_From_Selected_Cell
✅ Should_Return_Right_Cells_From_Selected_Cell
✅ Should_Return_Selected_Column_Cells
✅ Should_Return_Selected_Column_Pieces_Of_Type
✅ Should_Return_Selected_Pieces_Of_Type
✅ Should_Return_Selected_Row_Cells
✅ Should_Return_Selected_Row_Pieces_Of_Type
✅ Should_Return_Upper_Cells_From_Selected_Cell
✅ Should_Shuffle_All_Valid_Cells
✅ Should_Shuffle_All_Valid_Cells_Except_Exceptions_Cells
✅ Should_Throw_Exception_When_Try_To_Shuffle_An_Empty_Board
✅ Match3MakerTests.GridCellTests
✅ Should_Be_Created_With_Correct_Properties
✅ Should_Detect_Adjacent_Cells
✅ Should_Detect_Adjacent_Diagonal_Cells
✅ Should_Detect_Cells_OnSameColumn
✅ Should_Detect_Cells_OnSameRow
✅ Should_Detect_Column_Neighbours
✅ Should_Detect_Piece
✅ Should_Detect_Row_Neighbours
✅ Should_Not_Swap_Piece_When_Conditions_Are_Not_Met
✅ Should_Raise_Swap_Rejected_Event_When_Swap_Cannot_Be_Done
✅ Should_Raise_Swapped_Piece_Event_When_Swaps
✅ Should_Remove_Piece_And_Return_It
✅ Should_Swap_Piece_When_Both_Cells_Has_One_And_Met_Conditions
✅ ThrowException_When_Coordinates_Are_Negative
✅ Match3MakerTests.PieceTests
✅ Should_Be_Created_From_Static_Constructor
✅ Should_Be_Normal_And_Unlocked_On_Default_Initialization
✅ Should_Be_Notify_When_Locked_Property_Changes
✅ Should_Match_With_Similar_Pieces
✅ Match3MakerTests.PieceWeightGeneratorTests
✅ Should_Roll_Always_At_Least_One_Piece_Of_Type_Provided
✅ Should_Throw_Argument_Exception_When_Pieces_Are_Empty
✅ Match3MakerTests.SequenceFinderTests
✅ Should_Find_Horizontal_Matches_From_Min_Match
✅ Should_Find_Horizontal_Matches_On_Min_Max_Match_Range_Order_Desc_By_Size
✅ Should_Find_Horizontal_Matches_Up_To_Max_Match
✅ Should_Find_Horizontal_Matches_When_Enabled
✅ Should_Find_LSHapes
✅ Should_Find_TSHapes
✅ Should_Find_Vertical_Matches_From_Min_Match
✅ Should_Find_Vertical_Matches_On_Min_Max_Match_Range_Order_Desc_By_Size
✅ Should_Find_Vertical_Matches_Up_To_Max_Match
✅ Should_Find_Vertical_Matches_When_Enabled
✅ Should_Return_Empty_When_Horizontal_Matches_Are_Disabled
✅ Should_Return_Empty_When_No_Horizontal_Matches_Found
✅ Should_Return_Empty_When_No_Vertical_Matches_Found
✅ Should_Return_Empty_When_Vertical_Matches_Are_Disabled
✅ Should_Return_Null_When_Sequences_To_Find_LShape_Are_Not_Horizontal_Or_Vertical
✅ Should_Return_Null_When_Sequences_To_Find_TShape_Are_Not_Horizontal_Or_Vertical
✅ Match3MakerTests.SequenceTests
✅ Sequence_Pieces_Can_Be_Retrieved
✅ Should_Create_Sequence_Correctly
✅ Should_Create_Sequence_Without_Empty_Cells
✅ Should_Get_All_The_Pieces_From_Cells
✅ Should_Remove_Pieces_From_Cell_When_Consumed
✅ Should_Retrieve_Correct_Horizontal_Edge_Cells
✅ Should_Retrieve_Correct_Vertical_Edge_Cells
Loading