samplesuiteextensiontests.cs
来自「NUnit测试工具源码,他使用c#开发的一个测试工具」· CS 代码 · 共 28 行
CS
28 行
using System;
using System.Reflection;
namespace NUnit.Core.Extensions.Tests
{
/// <summary>
/// Test class that demonstrates SampleSuiteExtension
/// </summary>
[SampleSuiteExtension]
public class SampleSuiteExtensionTests
{
public void SampleTest1()
{
Console.WriteLine( "Hello from sample test 1" );
}
public void SampleTest2()
{
Console.WriteLine( "Hello from sample test 2" );
}
public void NotATest()
{
Console.WriteLine( "I shouldn't be called!" );
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?