func ClientTestReadIntDB(t *testing.T, client gos7.Client) {
	address := 2710
	start := 8
	size := 2
	buf := make([]byte, 255)
	err := client.AGReadDB(address, start, size, buf)
	if err != nil {
		t.Fatal(err)
	}
	var s7 gos7.Helper
	var result uint16
	s7.GetValueAt(buf, 0, &result)
	AssertEquals(t, 100, int(result))
}
ClientTestReadIntDB client test read int
package test
import (
	"encoding/binary"
	"runtime"
	"strings"
	"testing"
	"../../gos7"
)
func ClientTestAll(t *testing.T, client gos7.Client) {
	ClientTestWriteIntDB(t, client, 100)
	ClientTestReadIntDB(t, client)
	ClientTestWriteIntDB(t, client, 0)
	ClientTestDirectory(t, client)
	ClientTestGetCPUInfo(t, client)
	ClientTestGetAGBlockInfo(t, client)
	ClientPLCGetStatus(t, client)
	ClientAGWriteMulti(t, client)
	ClientAGReadMulti(t, client)
}
func ClientTestWriteIntDB(t *testing.T, client gos7.Client, value int16) {
	address := 2710
	start := 8
	size := 2
	buffer := make([]byte, 255)
	var helper gos7.Helper
	helper.SetValueAt(buffer, 0, value)
	err := client.AGWriteDB(address, start, size, buffer)
	if err != nil {
		t.Fatal(err)
	}
	AssertEquals(t, err, nil)  
}