aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/dotnet/assert_build_project.sh9
-rw-r--r--test/dotnet/assert_run_project.sh8
2 files changed, 17 insertions, 0 deletions
diff --git a/test/dotnet/assert_build_project.sh b/test/dotnet/assert_build_project.sh
new file mode 100644
index 0000000..11c575b
--- /dev/null
+++ b/test/dotnet/assert_build_project.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+source dev-container-features-test-lib
+
+pushd example_project
+check "dotnet restore" dotnet restore
+check "dotnet build" dotnet build
diff --git a/test/dotnet/assert_run_project.sh b/test/dotnet/assert_run_project.sh
new file mode 100644
index 0000000..40d7b72
--- /dev/null
+++ b/test/dotnet/assert_run_project.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+source dev-container-features-test-lib
+
+pushd example_project
+check "dotnet run" bash -c "dotnet run | grep 'Inception'"