From 127118cf7a51e321a71a47f6fafeb9a4c72a2897 Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Sat, 19 Nov 2016 21:08:18 -0800 Subject: [PATCH] Update GenerateConstructor tests. --- .../GenerateConstructorTests.cs | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/EditorFeatures/CSharpTest/Diagnostics/GenerateConstructor/GenerateConstructorTests.cs b/src/EditorFeatures/CSharpTest/Diagnostics/GenerateConstructor/GenerateConstructorTests.cs index 2e70672b689..1c0804460ef 100644 --- a/src/EditorFeatures/CSharpTest/Diagnostics/GenerateConstructor/GenerateConstructorTests.cs +++ b/src/EditorFeatures/CSharpTest/Diagnostics/GenerateConstructor/GenerateConstructorTests.cs @@ -1283,9 +1283,9 @@ void M() class Delta { - private bool v; private string v1; private int v2; + private bool v; public Delta(string v1, int v2) { @@ -1447,9 +1447,9 @@ void M() class Delta { - private bool v; private string v1; private int v2; + private bool v; public Delta(string v1, int v2) { @@ -1666,17 +1666,17 @@ void Main() struct Apartment { - private string v; private int v1; + private string v; - public Apartment(string v) : this() + public Apartment(int v1) { - this.v = v; + this.v1 = v1; } - public Apartment(int v1) + public Apartment(string v) : this() { - this.v1 = v1; + this.v = v; } }"); } @@ -1765,13 +1765,13 @@ class D private int u; private D v; - public D(D v) + public D(int u) { - this.v = v; } - public D(int u) + public D(D v) { + this.v = v; } }"); } @@ -1871,9 +1871,9 @@ class D [AttributeUsage(AttributeTargets.Class)] class MyAttribute : Attribute { - private string topic; private bool v1; private int v2; + private string topic; public MyAttribute(bool v1, int v2, string topic) { @@ -1968,14 +1968,14 @@ class MyAttribute : Attribute private int v; private bool v1; - public MyAttribute(bool v1) + public MyAttribute(int v) { - this.v1 = v1; + this.v = v; } - public MyAttribute(int v) + public MyAttribute(bool v1) { - this.v = v; + this.v1 = v1; } } @@ -2014,22 +2014,22 @@ class D [AttributeUsage(AttributeTargets.Class)] class MyAttrAttribute : Attribute { - private int v; private bool v1; private int v2; + private int v; private bool v3; - public MyAttrAttribute(int v, bool v3) - { - this.v = v; - this.v3 = v3; - } - public MyAttrAttribute(bool v1, int v2) { this.v1 = v1; this.v2 = v2; } + + public MyAttrAttribute(int v, bool v3) + { + this.v = v; + this.v3 = v3; + } } [MyAttrAttribute(1, true)] @@ -2069,9 +2069,8 @@ enum A [AttributeUsage(AttributeTargets.Class)] class MyAttrAttribute : Attribute { - private A a1; private int[] v1; - private string v10; + private A a1; private bool v2; private byte v3; private char v4; @@ -2080,6 +2079,7 @@ class MyAttrAttribute : Attribute private long v7; private double v8; private float v9; + private string v10; public MyAttrAttribute(int[] v1, A a1, bool v2, byte v3, char v4, short v5, int v6, long v7, double v8, float v9, string v10) { -- GitLab