You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
742 B
26 lines
742 B
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using NUnit.Framework; |
|
|
|
namespace ICSharpCode.NRefactory.CSharp.Resolver |
|
{ |
|
[TestFixture] |
|
public class MemberLookupTests : ResolverTestBase |
|
{ |
|
[Test] |
|
public void ShortMaxValueTest() |
|
{ |
|
string program = @"using System; |
|
class TestClass { |
|
object a = $short.MaxValue$; |
|
} |
|
"; |
|
MemberResolveResult rr = Resolve<MemberResolveResult>(program); |
|
Assert.AreEqual("System.Int16", rr.Type.FullName); |
|
Assert.AreEqual("System.Int16.MaxValue", rr.Member.FullName); |
|
Assert.AreEqual(short.MaxValue, rr.ConstantValue); |
|
} |
|
} |
|
}
|
|
|