diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10150-operator-null-conditional.cs')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10150-operator-null-conditional.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10150-operator-null-conditional.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10150-operator-null-conditional.cs new file mode 100644 index 00000000..61ac6d74 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10150-operator-null-conditional.cs @@ -0,0 +1,16 @@ +public class test +{ + public static void TestOfNullConditionalOperator() + { + string s = "Test"; + + if (s ?. Length > 0) + { + s = "Test"; + } + if (System . Reflection . Assembly . GetEntryAssembly() ?. GetName() != null) + { + s = "Test"; + } + } +} |