Example #1
0
func TestAddContext(t *testing.T) {
	b := NewBot(nullResponder{})

	b.AddContext(nullContext{})

	test.Equals(t, 1, len(b.contexts))
}
Example #2
0
func TestNewBotAddsResponder(t *testing.T) {
	b := NewBot(nullResponder{})

	test.Equals(t, nullResponder{}, b.responder)
}