gstreamer/tests/MessageTest.cs
2009-06-17 12:10:00 +02:00

38 lines
665 B
C#

//
// 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();
}
[TestFixtureTearDown]
public void Deinit()
{
Application.Deinit();
}
[Test]
public void TestParsing()
{
Message message = Message.NewEos(null);
Assert.IsNotNull(message);
Assert.AreEqual(message.Type, MessageType.Eos);
Assert.IsNull(message.Src);
message = Message.NewError(null, CoreError.TooLazy);
Assert.IsNotNull(message);
Assert.AreEqual(message.Type, MessageType.Error);
Assert.IsNull(message.Src);
}
}