blob: 1babca370ca74f679c24a3db2c4df55cf9ef734c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//
// ApplicationTest.cs: NUnit Test Suite for gstreamer-sharp
//
// Authors:
// Aaron Bockover (abockover@novell.com)
//
// (C) 2006 Novell, Inc.
//
using System;
using NUnit.Framework;
[TestFixture]
public class ApplicationTest
{
[Test]
public void Init()
{
Gst.Application.Init();
Gst.Application.Deinit();
}
[Test]
public void InitArgs()
{
string [] args = { "arg_a", "arg_b" };
Gst.Application.Init("gstreamer-sharp-test", ref args);
Gst.Application.Deinit();
}
[Test]
public void InitArgsCheck()
{
string [] args = { "arg_a", "arg_b" };
Gst.Application.InitCheck("gstreamer-sharp-test", ref args);
Gst.Application.Deinit();
}
[Test]
public void TestVersion()
{
Assert.AreEqual(Gst.Application.Version.Minor, 10);
}
[Test]
public void TestVersionString()
{
Assert.IsNotNull(Gst.Application.Version.ToString());
}
[Test]
public void TestVersionDescription()
{
Assert.IsNotNull(Gst.Application.Version.Description);
}
}
|