|
|
|
@ -73,9 +73,22 @@ namespace ICSharpCode.NRefactory.CSharp.CodeCompletion
@@ -73,9 +73,22 @@ namespace ICSharpCode.NRefactory.CSharp.CodeCompletion
|
|
|
|
|
{ |
|
|
|
|
var provider = CodeCompletionBugTests.CreateProvider (@"$#if $"); |
|
|
|
|
Assert.IsTrue (provider == null || provider.Count == 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
provider = CodeCompletionBugTests.CreateProvider (@"$#if $", true); |
|
|
|
|
Assert.IsNotNull (provider.Find ("DEBUG"), "define 'DEBUG' not found."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///Bug 10079 - Cannot type && conditional
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Test] |
|
|
|
|
public void TestBug10079 () |
|
|
|
|
{ |
|
|
|
|
var provider = CodeCompletionBugTests.CreateProvider (@"$#if TRUE &$"); |
|
|
|
|
Assert.IsTrue (provider == null || provider.Count == 0); |
|
|
|
|
|
|
|
|
|
provider = CodeCompletionBugTests.CreateProvider (@"$#if TRUE && $", true); |
|
|
|
|
Assert.IsNotNull (provider.Find ("DEBUG"), "define 'DEBUG' not found."); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|