gstreamer/tests/ElementTest.cs
Maarten Bosmans 18682a3604 Remove all the Refcount tests
The refcount of GstObjects isn't public anymore
and shouldn't be tested for anyway.
2009-06-17 12:09:59 +02:00

50 lines
697 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();
}
[TestFixtureTearDown]
public void Deinit()
{
Application.Deinit();
}
[Test]
public void TestErrorNoBus()
{
Element e = ElementFactory.Make("fakesrc", "source");
e.Dispose();
}
[Test]
public void TestLinkNoPads()
{
Element src = new Bin("src");
Element sink = new Bin("sink");
Assert.IsFalse(src.Link(sink));
src.Dispose();
sink.Dispose();
}
}