emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 309e2c8 238/459: Create failing test-case.


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 309e2c8 238/459: Create failing test-case.
Date: Sun, 22 Aug 2021 13:59:35 -0400 (EDT)

branch: externals/csharp-mode
commit 309e2c8c57401e8fc2037c91f14729e4add1bdce
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Create failing test-case.
---
 test-files/indentation-tests.cs | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/test-files/indentation-tests.cs b/test-files/indentation-tests.cs
index 96b17c3..c0c4d8f 100644
--- a/test-files/indentation-tests.cs
+++ b/test-files/indentation-tests.cs
@@ -104,6 +104,36 @@ namespace Boo
                 { "IsZero", (int i) => i == 0 }
             };
 
+            var innerClassIntance = new TypeOuter.TypeInner
+            {
+                Boo = "Foo",
+                May = "Yay"
+            };
+
+            // yielding has different behaviour... for some reason!
+            // https://github.com/josteink/csharp-mode/issues/94
+            yield return new InnerA {
+                PropA = 1,
+                PropB = 2
+            };
+
+            yield return new InnerA.InnerB {
+                PropA = 1,
+                PropB = 2
+            };
+
+            yield return new InnerA
+            {
+                Boo = "Foo",
+                May = "Yay"
+            };
+
+            yield return new InnerA.InnerB
+            {
+                Boo = "Foo",
+                May = "Yay"
+            };
+
             using (test)
             {
                 System.Console.WriteLine("boo");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]