예제 #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()
}