public void TestOSCBlobParsing(byte[] values) { byte[] array = new byte[values.Length + sizeof(Int32)]; Array.Copy(BitConverter.GetBytes(values.Length), array, sizeof(Int32)); Array.Copy(values, 0, array, sizeof(Int32), values.Length); Assert.Equal(array, OSCValueTester.TestOSCValueParser(array, (reader) => OSCBlob.Parse(reader))); }
public void TestParsing(string value) { Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCString.Parse(reader))); }
public void TestParse(float value) { Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCFloat.Parse(reader))); }
public void TestParsing(int year, int month, int day, int hour, int minute, int second, int millisecond) { DateTime value = new DateTime(year, month, day, hour, minute, second, millisecond); Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCTimeTag.Parse(reader))); }
public void TestParsing(Int32 value) { Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCInt.Parse(reader))); }