Example #1
0
func Test_EnvironmentControllerFixture__heater_and_blower_when_cold(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["environment_controller_test.go"])
	defer fixture.Finalize()
	test := &EnvironmentControllerFixture{Fixture: fixture}
	test.Setup()
	test.TestHeaterAndBlowerWhenCold()
}
Example #2
0
func Test_EnvironmentControllerFixture__high_alarm_on_if_at_threshold(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["environment_controller_test.go"])
	defer fixture.Finalize()
	test := &EnvironmentControllerFixture{Fixture: fixture}
	test.Setup()
	test.TestHighAlarmOnIfAtThreshold()
}
Example #3
0
func Test_EnvironmentControllerFixture__everything_turned_off_at_startup(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["environment_controller_test.go"])
	defer fixture.Finalize()
	test := &EnvironmentControllerFixture{Fixture: fixture}
	test.Setup()
	test.TestEverythingTurnedOffAtStartup()
}
Example #4
0
func Test_EnvironmentControllerFixture__everything_off_when_comfortable(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["environment_controller_test.go"])
	defer fixture.Finalize()
	test := &EnvironmentControllerFixture{Fixture: fixture}
	test.Setup()
	test.TestEverythingOffWhenComfortable()
}
Example #5
0
func Test_BowlingGameScoringTests__perfect_game(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["bowling_game_test.go"])
	defer fixture.Finalize()
	test := &BowlingGameScoringTests{Fixture: fixture}
	test.Setup()
	test.TestPerfectGame()
}
Example #6
0
func Test_BowlingGameScoringTests__strike_recieves_double_roll_bonus(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["bowling_game_test.go"])
	defer fixture.Finalize()
	test := &BowlingGameScoringTests{Fixture: fixture}
	test.Setup()
	test.TestStrikeRecievesDoubleRollBonus()
}
Example #7
0
func Test_BowlingGameScoringTests__after_all_ones_the_score_should_be_twenty(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["bowling_game_test.go"])
	defer fixture.Finalize()
	test := &BowlingGameScoringTests{Fixture: fixture}
	test.Setup()
	test.TestAfterAllOnesTheScoreShouldBeTwenty()
}
Example #8
0
func Test_ExampleFixture__with_assertions(t *testing.T) {
	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["examples_test.go"])
	defer fixture.Finalize()
	test := &ExampleFixture{Fixture: fixture}
	defer test.TeardownStuff()
	test.SetupStuff()
	test.TestWithAssertions()
}
Example #9
0
func Test_ExampleFixture__skip_with_nothing(t *testing.T) {
	t.Skip("Skipping test case: 'SkipTestWithNothing'")

	t.Parallel()
	fixture := gunit.NewFixture(t, testing.Verbose(), __code__["examples_test.go"])
	defer fixture.Finalize()
	test := &ExampleFixture{Fixture: fixture}
	defer test.TeardownStuff()
	test.SetupStuff()
	test.SkipTestWithNothing()
}