public void test11() { float expectedOutput = 3.141592F; F4SECSItem secsItem = new F4SECSItem(expectedOutput); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.F4); }
public void test10() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.F4) << 2) | 0x01), 0x04, 127, 127, 255, 255 }; F4SECSItem secsItem = new F4SECSItem(input, 0); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.F4); }