Use dependency link arguments in C# targets

pull/3121/merge
Niclas Moeslund Overby 7 years ago committed by Jussi Pakkanen
parent 8c376a7fe4
commit c572d222da
  1. 7
      test cases/csharp/4 pkgconfig/meson.build
  2. 11
      test cases/csharp/4 pkgconfig/test-lib.cs

@ -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)

@ -0,0 +1,11 @@
using NUnit.Framework;
[TestFixture]
public class NUnitTest
{
[Test]
public void Test()
{
Assert.AreEqual(1 + 1, 2);
}
}
Loading…
Cancel
Save