Use parameter-less constructors for Bin/Pipeline

This commit is contained in:
Sebastian Dröge 2009-06-20 11:41:28 +02:00
parent 7eebc0c2bc
commit cc2aa83e67
2 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ public class BinTest
[Test] [Test]
public void TestGhostPad() public void TestGhostPad()
{ {
Bin bin = new Bin(String.Empty); Bin bin = new Bin();
Element filesrc = ElementFactory.Make("filesrc"); Element filesrc = ElementFactory.Make("filesrc");
bin.Add(filesrc); bin.Add(filesrc);
CollectionAssert.IsEmpty(bin.Pads); CollectionAssert.IsEmpty(bin.Pads);

View file

@ -24,7 +24,7 @@ public class PipelineTest
[Test] [Test]
public void TestPipeline() public void TestPipeline()
{ {
Pipeline pipeline = new Pipeline(String.Empty); Pipeline pipeline = new Pipeline();
Assert.IsNotNull(pipeline, "Could not create pipeline"); Assert.IsNotNull(pipeline, "Could not create pipeline");
Assert.IsNotNull(pipeline.Bus, "Bus on pipeline is null"); Assert.IsNotNull(pipeline.Bus, "Bus on pipeline is null");
Assert.IsNotNull(pipeline.Clock, "Clock on pipeline is null"); Assert.IsNotNull(pipeline.Clock, "Clock on pipeline is null");
@ -33,7 +33,7 @@ public class PipelineTest
[Test] [Test]
public void TestAsyncStateChangeEmpty() public void TestAsyncStateChangeEmpty()
{ {
Pipeline pipeline = new Pipeline(String.Empty); Pipeline pipeline = new Pipeline();
Assert.IsNotNull(pipeline, "Could not create pipeline"); Assert.IsNotNull(pipeline, "Could not create pipeline");
Assert.AreEqual(((Element)pipeline).SetState(State.Playing), StateChangeReturn.Success); Assert.AreEqual(((Element)pipeline).SetState(State.Playing), StateChangeReturn.Success);
@ -42,7 +42,7 @@ public class PipelineTest
[Test] [Test]
public void TestAsyncStateChangeFakeReady() public void TestAsyncStateChangeFakeReady()
{ {
Pipeline pipeline = new Pipeline(String.Empty); Pipeline pipeline = new Pipeline();
Element src = ElementFactory.Make("fakesrc"); Element src = ElementFactory.Make("fakesrc");
Element sink = ElementFactory.Make("fakesink"); Element sink = ElementFactory.Make("fakesink");
@ -57,7 +57,7 @@ public class PipelineTest
public void TestAsyncStateChangeFake() public void TestAsyncStateChangeFake()
{ {
bool done = false; bool done = false;
Pipeline pipeline = new Pipeline(String.Empty); Pipeline pipeline = new Pipeline();
Assert.IsNotNull(pipeline, "Could not create pipeline"); Assert.IsNotNull(pipeline, "Could not create pipeline");
Element src = ElementFactory.Make("fakesrc"); Element src = ElementFactory.Make("fakesrc");
@ -122,7 +122,7 @@ public class PipelineTest
public void TestBusCallback(bool use_AddWatch) public void TestBusCallback(bool use_AddWatch)
{ {
pipeline = new Pipeline(String.Empty); pipeline = new Pipeline();
Assert.IsNotNull(pipeline, "Could not create pipeline"); Assert.IsNotNull(pipeline, "Could not create pipeline");
Element src = ElementFactory.Make("fakesrc"); Element src = ElementFactory.Make("fakesrc");