aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/dotnet/example_test/MyTest.cs
diff options
context:
space:
mode:
authorGravatar Jeremy Wall <jeremy@marzhillstudios.com>2015-11-09 18:44:26 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-11-10 10:23:14 +0000
commitd00e3a1ef2c6678ffc24eb9ffbc6561ba85338c4 (patch)
tree65141853f2eaa52cfd5fcde608f89a14548b3428 /examples/dotnet/example_test/MyTest.cs
parent15099239d94f5fb94504e33f670adf71dacff48a (diff)
Add dotnet csharp support to bazel.
Adds rules for csharp_binary, csharp_library, and csharp_nunit_test. -- Change-Id: I51e448a399c535554353b3f40bf090bb602f647f Reviewed-on: https://bazel-review.googlesource.com/#/c/2270/ MOS_MIGRATED_REVID=107399181
Diffstat (limited to 'examples/dotnet/example_test/MyTest.cs')
-rw-r--r--examples/dotnet/example_test/MyTest.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/dotnet/example_test/MyTest.cs b/examples/dotnet/example_test/MyTest.cs
new file mode 100644
index 0000000000..d5d5d3e5c7
--- /dev/null
+++ b/examples/dotnet/example_test/MyTest.cs
@@ -0,0 +1,24 @@
+using System;
+
+using NUnit.Framework;
+
+using example_lib;
+
+namespace example_test
+{
+ [TestFixture]
+ public class MyTest
+ {
+ [Test]
+ public void MyTest1()
+ {
+ Assert.That("foo", Is.EqualTo("Foo"));
+ }
+
+ [Test]
+ public void MyTest2()
+ {
+ Assert.That("bar", Is.EqualTo("bar"));
+ }
+ }
+} \ No newline at end of file