Skip to content

missed few checks when it comes to detect pending fall moves #31

missed few checks when it comes to detect pending fall moves

missed few checks when it comes to detect pending fall moves #31

GitHub Actions / Dotnet Tests result succeeded Jun 16, 2024 in 0s

91 passed, 0 failed and 0 skipped

Tests passed successfully

✅ Match3Maker.Tests/TestResults/test-results.trx

91 tests were completed in 1s with 91 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Match3MakerTests.BoardTests 43✅ 164ms
Match3MakerTests.GridCellTests 15✅ 68ms
Match3MakerTests.PieceTests 4✅ 8ms
Match3MakerTests.PieceWeightGeneratorTests 2✅ 12ms
Match3MakerTests.SequenceFinderTests 16✅ 71ms
Match3MakerTests.SequenceTests 11✅ 76ms

✅ 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_Create_Sequences_From_Columns_In_Board
✅ Should_Be_Able_Create_Sequences_From_Rows_In_Board
✅ Should_Be_Able_Create_Sequences_Of_Cells_With_Selected_Type
✅ Should_Be_Able_To_Calculate_The_Pending_Fall_Moves_When_Sequence_Is_Consumed
✅ Should_Be_Able_To_Choose_Disabled_Cells_On_Prepare
✅ 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_Choose_Grid_Cells_That_Can_Or_Not_Pieces
✅ Should_Create_A_Virtual_Board_Only_With_Fill_Updates_On_Entire_Column_Consumed
✅ Should_Create_A_Virtual_Board_Only_With_Fill_Updates_When_First_Row_Consumed
✅ Should_Create_A_Virtual_Board_Only_With_Fill_When_Mode_Is_In_Place
✅ Should_Create_A_Virtual_Board_With_Movement_And_Fill
✅ 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_Cells_That_Cannot_Contain_Pieces
✅ 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_Move_Pieces_And_Fill_When_Grid_Cells_Are_Not_Prepared
✅ 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_Replace_Piece_Only_When_Has_One_Assigned
✅ 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_Detect_Shape_Diagonal_Automatically_When_Null
✅ Should_Detect_Shape_Horizontal_Automatically_When_Null
✅ Should_Detect_Shape_Irregular_Automatically_When_Null
✅ Should_Detect_Shape_Vertical_Automatically_When_Null
✅ 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