📄 refactoringtests.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision: 1070 $</version>
// </file>
using System;
using System.Collections;
using System.IO;
using NUnit.Framework;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Dom.NRefactoryResolver;
namespace ICSharpCode.SharpDevelop.Tests
{
//[TestFixture]
public class RefactoringTests
{
const string code = @"using System;
abstract class BaseClass {
protected abstract void FirstMethod();
protected virtual void SecondMethod()
{
}
}
class DerivedClass : BaseClass
{
protected override void FirstMethod()
{
SecondMethod();
}
}
class SecondDerivedClass : DerivedClass
{
protected override void FirstMethod()
{
Console.Beep();
}
protected override void SecondMethod()
{
FirstMethod();
}
}
";
// TODO: Write unit tests for find references / find overrides / go to base class.
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -