Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}
Пример #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()
}