diff options
author | David Karlaš <david.karlas@microsoft.com> | 2018-01-08 22:51:20 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@microsoft.com> | 2018-01-08 22:55:45 +0300 |
commit | ee92f9dae6a660d1886bacbfc4371f4a0c3d42fd (patch) | |
tree | 941702232a585541856e958be69fd5a28a9fcda3 /UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs | |
parent | ff81dde9ea52e2fce77f74abfc43bc6039606d56 (diff) |
Virtual Property always showing Base Value in Debugger
VSTS 546178 - https://developercommunity.visualstudio.com/content/problem/171231/virtual-property-always-showing-base-value-in-debu.html
Change in `HasMethod` method was made because one unit test started failing because wrong method overload was picked, hence making it more strict fixes that
Diffstat (limited to 'UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs')
-rw-r--r-- | UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs b/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs index 749b982..512ddca 100644 --- a/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs +++ b/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs @@ -165,6 +165,20 @@ namespace MonoDevelop.Debugger.Tests.TestApp } } + public abstract class BaseClass + { + public enum MyEnum + { + Red, + Black + } + public virtual MyEnum Foo { get; set; } + } + public class OverrideClass : BaseClass + { + public override MyEnum Foo { get { return MyEnum.Black; } set { throw new NotImplementedException(); }} + } + class TestEvaluation : TestEvaluationParent { static string staticString = "some static"; @@ -269,6 +283,7 @@ namespace MonoDevelop.Debugger.Tests.TestApp int [] myBoundArray = new int [1] { Int32.MinValue }; Array myExtremeArray = Array.CreateInstance (typeof (String), myLengthArray, myBoundArray); myExtremeArray.SetValue ("b38c0da4-a009-409d-bc78-2a051267d05a", int.MinValue + 1); + BaseClass bar = new OverrideClass(); Console.WriteLine (n); /*break*/ } |