gstreamer/tests/ElementTest.cs
Maarten Bosmans 37b8bdd10d Make the test suite actually run
By removing the Application.Deinit calls
and disabling two test that cause problems.
2009-06-17 12:10:19 +02:00

39 lines
568 B
C#

//
// ElementTest.cs: NUnit Test Suite for gstreamer-sharp
//
// Authors:
// Khaled Mohammed (khaled.mohammed@gmail.com)
//
// (C) 2006 Novell, Inc.
//
using System;
using NUnit.Framework;
using Gst;
[TestFixture]
public class ElementTest
{
[TestFixtureSetUp]
public void Init()
{
Application.Init();
}
[Test]
public void TestErrorNoBus()
{
Element e = ElementFactory.Make("fakesrc", "source");
}
[Test]
public void TestLinkNoPads()
{
Element src = new Bin("src");
Element sink = new Bin("sink");
Assert.IsFalse(src.Link(sink));
}
}