Example #1
0
        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)));
        }
Example #2
0
 public void TestParsing(string value)
 {
     Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCString.Parse(reader)));
 }
Example #3
0
 public void TestParse(float value)
 {
     Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCFloat.Parse(reader)));
 }
Example #4
0
        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)));
        }
Example #5
0
 public void TestParsing(Int32 value)
 {
     Assert.Equal(value, OSCValueTester.TestOSCValueParser(value, (reader) => OSCInt.Parse(reader)));
 }