public void TestSearchByteAttributes()
{
OperationOptionsBuilder builder = new OperationOptionsBuilder();
builder.AttributesToGet = new[] { "attributeByte", "attributeByteMultivalue", "attributeByteArray", "attributeByteArrayMultivalue" };
var co = GetFacade().GetObject(Test, new Uid("UID01"), builder.Build());
Assert.IsNotNull(co);
IList<Object> value = co.GetAttributeByName("attributeByte").Value;
Assert.AreEqual(1, value.Count);
Assert.IsInstanceOf(typeof(byte), value[0]);
value = co.GetAttributeByName("attributeByteMultivalue").Value;
Assert.AreEqual(2, value.Count);
Assert.IsInstanceOf(typeof(byte), value[0]);
Assert.IsInstanceOf(typeof(byte), value[1]);
value = co.GetAttributeByName("attributeByteArray").Value;
Assert.AreEqual(1, value.Count);
Assert.IsInstanceOf(typeof(byte[]), value[0]);
value = co.GetAttributeByName("attributeByteArrayMultivalue").Value;
Assert.AreEqual(2, value.Count);
Assert.IsInstanceOf(typeof(byte[]), value[0]);
Assert.IsInstanceOf(typeof(byte[]), value[1]);
}