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

📄 tests.cs

📁 .NET 2.0模式开发实战源代码,使用C#说明
💻 CS
字号:
using System;using NUnit.Framework;using Chap03;// mono ../../apps/nunit-2.2.0/bin/nunit-console.exe chap03.exe[TestFixture]public class IntroTests {    private string _strHelloAnybodyThere =  "hello anybody there";    [Test]public void SimpleBridge() {        Intention obj = Factory.Instantiate();        Chap03MockObjects.Callback.CBFeedbackString =             new Chap03MockObjects.FeedbackString( this.CallbackSimpleBridge);        obj.Echo( _strHelloAnybodyThere);    }    void CallbackSimpleBridge( string message) {        string test = "From the console " + _strHelloAnybodyThere;        if( message != test) {            throw new Exception();        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -