public void ProfileEnd() { for (byte i = 0; i < byte.MaxValue; i++) { float floatValue = PrimObject.ProfileEndFloat(i); byte result = PrimObject.ProfileEndByte(floatValue); Assert.IsTrue(result == i, "Started with " + i + ", float value was " + floatValue + ", and ended up with " + result); } }