public void Test08() { float expectedOutput = 3.141592F; F4SECSItem secsItem = new F4SECSItem(expectedOutput); Assert.IsTrue(secsItem.GetSECSItemFormatCode() == SECSItemFormatCode.F4); }
public void Test07() { 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); }