public void TestOPCItemAttributesString01() { OPCItemAttributes opcAttribute = new OPCItemAttributes(); opcAttribute.ItemID = "OPCItem1"; opcAttribute.AccessPath = "OPCTop\\OPCTop2"; opcAttribute.HandleClient = 1; opcAttribute.HandleServer = 1; opcAttribute.AccessRights = OPCACCESSRIGHTS.OPC_READABLE; opcAttribute.RequestedDataType = System.Runtime.InteropServices.VarEnum.VT_I2; opcAttribute.CanonicalDataType = System.Runtime.InteropServices.VarEnum.VT_I2; opcAttribute.EUType = OPCEUTYPE.OPC_ANALOG; opcAttribute.EUInfo = null; byte[] buffer = new byte[10]; opcAttribute.Blob = buffer; //Test Procedure Call string result = opcAttribute.ToString(); }
public void TestCreateOPCItemAttributes01() { OPCItemAttributes oPCItemAttributes = CreateOPCItemAttributes01(); Assert.IsNotNull(oPCItemAttributes); }
public static OPCItemAttributes CreateOPCItemAttributes01() { OPCItemAttributes oPCItemAttributes = new OPCItemAttributes(); return(oPCItemAttributes); }