mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
3df192045a
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63659 e3ebcda4-bce8-0310-ba0a-eca2169e7518
40 lines
696 B
C#
40 lines
696 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 = new Message(null);
|
|
Assert.IsNotNull(message);
|
|
Assert.AreEqual(message.Type, MessageType.Eos);
|
|
Assert.IsNull(message.Src);
|
|
message.Dispose();
|
|
|
|
message = new Message(null, "error string");
|
|
Assert.IsNotNull(message);
|
|
Assert.AreEqual(message.Type, MessageType.Error);
|
|
Assert.IsNull(message.Src);
|
|
message.Dispose();
|
|
}
|
|
}
|