gstreamer/tests/MessageTest.cs

31 lines
618 B
C#
Raw Normal View History

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