mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
37b8bdd10d
By removing the Application.Deinit calls and disabling two test that cause problems.
33 lines
590 B
C#
33 lines
590 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();
|
|
}
|
|
|
|
[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);
|
|
}
|
|
}
|
|
|