hybridgroup.gobot/joystick/joystick_adaptor_test.go

30 lines
604 B
Go

package gobotJoystick
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("JoystickAdaptor", func() {
var (
adaptor *JoystickAdaptor
)
BeforeEach(func() {
adaptor = new(JoystickAdaptor)
})
PIt("Must be able to Finalize", func() {
Expect(adaptor.Finalize()).To(Equal(true))
})
PIt("Must be able to Connect", func() {
Expect(adaptor.Connect()).To(Equal(true))
})
PIt("Must be able to Disconnect", func() {
Expect(adaptor.Disconnect()).To(Equal(true))
})
PIt("Must be able to Reconnect", func() {
Expect(adaptor.Reconnect()).To(Equal(true))
})
})