public void TestMatchesOrientationIsImportant() { Debug.Log("Test Matches Orientation Is Important"); StackMeta stack1 = GetStackMetaOf5WithOrientation(); StackMeta stack2 = GetStackMetaOf5WithOrientation(); TestManager.AssertTrue(stack1.Matches(stack2), "Should match"); TestManager.AssertTrue(stack2.Matches(stack1), "Should match"); TestManager.AssertTrue(stack1.Matches(stack1), "Should match"); stack2.GetChipMetaAt(0).Flip(); TestManager.AssertFalse(stack1.Matches(stack2), "Shouldn't match"); TestManager.AssertFalse(stack2.Matches(stack1), "Shouldn't match"); }
public void TestMatchesOrientationNotImportant() { Debug.Log("Test Matches Orientation Not Important"); StackMeta stack1 = GetStackMetaOf5(); StackMeta stack2 = GetStackMetaOf5(); TestManager.AssertTrue(stack1.Matches(stack2), "Stack1 and Stack2 should match"); TestManager.AssertTrue(stack1.Matches(stack1), "Stack1 and Stack2 should match"); TestManager.AssertTrue(stack1.Matches(stack1), "Stack1 and Stack2 should match"); stack2.FlipStackAt(3); TestManager.AssertFalse(stack1.Matches(stack2), "Stack1 and stack2 shouldn't match"); TestManager.AssertFalse(stack2.Matches(stack1), "Stack1 and stack2 shouldn't match"); stack2.FlipStackAt(3); TestManager.AssertTrue(stack1.Matches(stack2), "Stack1 and Stack2 should match"); TestManager.AssertTrue(stack1.Matches(stack1), "Stack1 and Stack2 should match"); }