⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 refactoringtests.cs

📁 SharpDevelop2.0.0 c#开发免费工具
💻 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 + -