aboutsummaryrefslogtreecommitdiff
path: root/test cases/csharp
diff options
context:
space:
mode:
authorNiclas Moeslund Overby <noverby@prozum.dk>2017-08-08 00:38:48 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-22 20:24:42 +0200
commitc572d222daf141656f6fe8119f1bd5bfc5fbe63e (patch)
tree89380154e0101d0ad30daf68201928d1eef4d69b /test cases/csharp
parent8c376a7fe404e898482dcda19b23a0a47e39bdf3 (diff)
downloadmeson-c572d222daf141656f6fe8119f1bd5bfc5fbe63e.zip
meson-c572d222daf141656f6fe8119f1bd5bfc5fbe63e.tar.gz
meson-c572d222daf141656f6fe8119f1bd5bfc5fbe63e.tar.bz2
Use dependency link arguments in C# targets
Diffstat (limited to 'test cases/csharp')
-rw-r--r--test cases/csharp/4 pkgconfig/meson.build7
-rw-r--r--test cases/csharp/4 pkgconfig/test-lib.cs11
2 files changed, 18 insertions, 0 deletions
diff --git a/test cases/csharp/4 pkgconfig/meson.build b/test cases/csharp/4 pkgconfig/meson.build
new file mode 100644
index 0000000..e2ba035
--- /dev/null
+++ b/test cases/csharp/4 pkgconfig/meson.build
@@ -0,0 +1,7 @@
+project('C# pkg-config', 'cs')
+
+nunit_dep = dependency('nunit')
+nunit_runner = find_program('nunit-console')
+
+test_lib = library('test_lib', 'test-lib.cs', dependencies: nunit_dep)
+test('nunit test', nunit_runner, args: test_lib)
diff --git a/test cases/csharp/4 pkgconfig/test-lib.cs b/test cases/csharp/4 pkgconfig/test-lib.cs
new file mode 100644
index 0000000..29f6795
--- /dev/null
+++ b/test cases/csharp/4 pkgconfig/test-lib.cs
@@ -0,0 +1,11 @@
+using NUnit.Framework;
+
+[TestFixture]
+public class NUnitTest
+{
+ [Test]
+ public void Test()
+ {
+ Assert.AreEqual(1 + 1, 2);
+ }
+}