gstreamer/tests/MessageTest.cs

34 lines
590 B
C#
Raw Normal View History

//
// Authors
// Khaled Mohammed (khaled.mohammed@gmail.com)
//
// (C) 2006
//
using Gst;
using System;
using NUnit.Framework;
public class MessageTest {
[TestFixtureSetUp]
public void Init()
{
Application.Init();
}
[Test]
public void TestParsing()
{
2009-06-13 10:01:29 +00:00
Message message = Message.NewEos(null);
Assert.IsNotNull(message);
Assert.AreEqual(message.Type, MessageType.Eos);
Assert.IsNull(message.Src);
2009-06-13 10:01:29 +00:00
message = Message.NewError(null, CoreError.TooLazy);
Assert.IsNotNull(message);
Assert.AreEqual(message.Type, MessageType.Error);
Assert.IsNull(message.Src);
}
}