mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
18682a3604
The refcount of GstObjects isn't public anymore and shouldn't be tested for anyway.
50 lines
697 B
C#
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();
|
|
}
|
|
|
|
}
|
|
|