2022-06-25 01:18:20 +01:00
|
|
|
package voicemeeter
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetPhysBus(t *testing.T) {
|
|
|
|
//t.Skip("skipping test")
|
2022-06-30 20:08:46 +01:00
|
|
|
__bus := newPhysicalBus(0, newPotatoKind())
|
2022-06-25 01:18:20 +01:00
|
|
|
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")
|
2022-06-30 20:08:46 +01:00
|
|
|
__bus := newVirtualBus(4, newPotatoKind())
|
2022-06-25 01:18:20 +01:00
|
|
|
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())
|
|
|
|
})
|
|
|
|
}
|