From 8121df576e71b42dc3b2e03b89dadd64656a92b9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Apr 2020 12:01:05 -0700 Subject: Use ‘nxml-mode’ for ‘.proj’ and ‘.targets’ files Both of these file types are used for MSBuild. --- test/integration/oni-csharp.bats | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test') diff --git a/test/integration/oni-csharp.bats b/test/integration/oni-csharp.bats index bdfcbd0..ba26d59 100644 --- a/test/integration/oni-csharp.bats +++ b/test/integration/oni-csharp.bats @@ -29,3 +29,23 @@ [[ "$output" == *"nxml-mode" ]] } + +@test "Opening a .proj fiile loads nxml-mode" { + run emacs -batch -l package -f package-initialize \ + -visit test.proj \ + -eval "(prin1 major-mode)" + + echo "$output" + + [[ "$output" == *"nxml-mode" ]] +} + +@test "Opening a .targets file loads nxml-mode" { + run emacs -batch -l package -f packaeg-initialize \ + -visit test.targets \ + -eval "(prin1 major-mode)" + + echo "$output" + + [[ "$output" == *"nxml-mode" ]] +} -- cgit v1.2.3-54-g00ecf