From 605b32558a4c33d0edf62f4d7ae17d3c1a0de0ff Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 28 Sep 2019 20:15:07 +0200 Subject: [PATCH] Extend InterfaceTests --- .../TestCases/Pretty/InterfaceTests.cs | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/InterfaceTests.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/InterfaceTests.cs index 2b4167c32..3a539c9c1 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/InterfaceTests.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/InterfaceTests.cs @@ -16,12 +16,27 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. +using System; + namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { internal class InterfaceTests { public interface IA { + int Property1 { + get; + } + int Property2 { + set; + } + int Property3 { + get; + set; + } + + event EventHandler MyEvent; + void Method(); } public interface IA2 : IA { @@ -31,6 +46,35 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } public class C : IA2, IA, IB { + int IA.Property1 { + get { + throw new NotImplementedException(); + } + } + int IA.Property2 { + set { + throw new NotImplementedException(); + } + } + int IA.Property3 { + get { + throw new NotImplementedException(); + } + set { + throw new NotImplementedException(); + } + } + + event EventHandler IA.MyEvent { + add { + } + remove { + } + } + void IA.Method() + { + throw new NotImplementedException(); + } } } }