mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-22 04:40:53 +00:00
9ac8fb5e7e
fixes #3
30 lines
712 B
Go
30 lines
712 B
Go
package voicemeeter
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetPhysBus(t *testing.T) {
|
|
//t.Skip("skipping test")
|
|
__bus := newPhysicalBus(0, newPotatoKind())
|
|
t.Run("Should return a physical bus type", func(t *testing.T) {
|
|
assert.NotNil(t, __bus)
|
|
})
|
|
t.Run("Should return 'PhysicalBus0'", func(t *testing.T) {
|
|
assert.Equal(t, "PhysicalBus0", __bus.String())
|
|
})
|
|
}
|
|
|
|
func TestGetVirtBus(t *testing.T) {
|
|
//t.Skip("skipping test")
|
|
__bus := newVirtualBus(4, newPotatoKind())
|
|
t.Run("Should return a basic kind", func(t *testing.T) {
|
|
assert.NotNil(t, __bus)
|
|
})
|
|
t.Run("Should return 'VirtualBus4'", func(t *testing.T) {
|
|
assert.Equal(t, "VirtualBus4", __bus.String())
|
|
})
|
|
}
|