TestUnInitializedSuites asserts the behavior of the suite methods when the suite is not initialized
(t *testing.T)
| 735 | // TestUnInitializedSuites asserts the behavior of the suite methods when the |
| 736 | // suite is not initialized |
| 737 | func TestUnInitializedSuites(t *testing.T) { |
| 738 | t.Run("should panic on Require", func(t *testing.T) { |
| 739 | suite := new(unInitializedSuite) |
| 740 | |
| 741 | assert.Panics(t, func() { |
| 742 | suite.Require().True(true) |
| 743 | }) |
| 744 | }) |
| 745 | |
| 746 | t.Run("should panic on Assert", func(t *testing.T) { |
| 747 | suite := new(unInitializedSuite) |
| 748 | |
| 749 | assert.Panics(t, func() { |
| 750 | suite.Assert().True(true) |
| 751 | }) |
| 752 | }) |
| 753 | } |