refactoringtests.cs
来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 52 行
CS
52 行
// <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 + =
减小字号Ctrl + -
显示快捷键?