3 # Some tests for C# support
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-cs-1.cs"
13 GettextResourceManager rm = new GettextResourceManager("test");
15 String test1 = rm.GetString("Test String 1");
17 String test2 = rm.GetString("Test String 2");
18 // C# "multiline" string
19 String test3 = rm.GetString("Test " +
23 String test4 = rm.GetString("");
25 // commented out through #if
26 String test5 = rm.GetString("Test String 5");
32 tmpfiles
="$tmpfiles xg-cs-1.po"
33 : ${XGETTEXT=xgettext}
34 ${XGETTEXT} --omit-header --no-location -c -d xg-cs-1 xg-cs-1.cs
35 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
37 tmpfiles
="$tmpfiles xg-cs-1.ok"
38 cat <<EOF > xg-cs-1.ok
47 #. C# "multiline" string
55 #. commented out through #if
61 ${DIFF} xg-cs-1.ok xg-cs-1.po