胖在一方

出得厅堂入得厨房的胖子

导航

2006年12月23日

摘要: Unit testing(单元测试),指一段代码的基本测试,其实际大小是未定的,通常是一个函数或子程序,一般由开发者执行。Integration testing(集成测试),被测试系统的所有组件都集成在一起,找出被测试系统组件之间关系和接口中的错误。该测试一般在单元测试之后进行。Acceptance testing(验收测试),系统开发生命周期方法论的一个阶段,这时相关的用户和/或独立测试人员... 阅读全文

posted @ 2006-12-23 09:33 胖在一方 阅读(257) 评论(0) 推荐(0)

2006年12月21日

摘要: 有时候一些测试情况不可能真实、方便的模拟出来,这个时候可以借助Mock对象。Mock对象也就是真实对象在调试期的替代品。 使用mock对象进行测试的时候,总共分三个步骤,分别是1、使用一个接口来描述这个对象2、为产品代码实现这个接口3、以测试为目的,在mock对象中实现这个接口。因为测试代码只会通过接口来引用对象,所以它完全不知道他引用的究竟是真实的对象还是mock对象。(单元测试之道用的是 ... 阅读全文

posted @ 2006-12-21 11:59 胖在一方 阅读(2764) 评论(2) 推荐(0)

摘要: NUnit学习笔记(一) 一些简单的断言(Assert)可以用对象游览器查看 略[Test] 标记测试的方法(Method)[TestFixture] 比较测试的类(Class)[SetUp] 在测试的方法(Method)之前运行(可以建立一些测试的资源)[TearDown] 在测试的方法(Method)之后运行(可以清理一些测试的资源)[Te... 阅读全文

posted @ 2006-12-21 11:38 胖在一方 阅读(467) 评论(0) 推荐(0)

2006年12月7日

摘要: .ai - application/postscript .aif - audio/x-aiff .aifc - audio/x-aiff .aiff - audio/x-aiff .asc - text/plain .au - audio/basic .avi - video/x-msvideo .bcpio -... 阅读全文

posted @ 2006-12-07 11:20 胖在一方 阅读(320) 评论(0) 推荐(0)

摘要: 考试通过嘿嘿舒服啊,70分~~ 恩以后要+u+u 阅读全文

posted @ 2006-12-07 09:57 胖在一方 阅读(180) 评论(0) 推荐(0)

2006年12月5日

摘要: 很少进行js开发,一般都是想到了去找代码,@_@在写完manual后,看了写js的文章,记录如下 //delcare new arrayvar arr =new Array();//declare new object()var obj=new Object();var i;for (i=0;i max) { ma... 阅读全文

posted @ 2006-12-05 16:54 胖在一方 阅读(299) 评论(0) 推荐(0)

2006年11月21日

摘要: 一、利用api播放声音文件vb.net版本 _ Public Shared Function PlaySound(ByVal pszSound As String, ByVal hmod As IntPtr, ByVal fdwSound As Integer) As Boolean End Function Enum PlayingFlags SND_SYNC ... 阅读全文

posted @ 2006-11-21 13:53 胖在一方 阅读(1008) 评论(1) 推荐(1)

2006年11月20日

摘要: wtypes.h C++ Managed Extensions Common langua... 阅读全文

posted @ 2006-11-20 12:01 胖在一方 阅读(222) 评论(0) 推荐(0)

2006年11月10日

摘要: 表score ,按成绩进行排名 cID cName iScore MC---------------------------------0001 a 100 0002 b 89 0003 c 98 0004 d 90 0005 e 98 0006 f 90 0007 g ... 阅读全文

posted @ 2006-11-10 15:49 胖在一方 阅读(245) 评论(0) 推荐(0)

2006年10月18日

摘要: '声明一个PrintDocument Public WithEvents prtDocument As New PrintDocument '打印预览代码 Dim ppd As New PrintPreviewDialog Try ppd.Document = prtDocument ppd.ShowDialog() Ca... 阅读全文

posted @ 2006-10-18 15:09 胖在一方 阅读(989) 评论(0) 推荐(0)

2006年10月13日

摘要: CSharp public string GetPinYin(string text) { char pinyin; byte[] array; System.Text.StringBuilder sb = new System.Text.StringBuilder(text.Length); ... 阅读全文

posted @ 2006-10-13 23:57 胖在一方 阅读(1803) 评论(2) 推荐(1)

摘要: c# using System.Runtime.InteropServices;[DllImport("user32.dll")]public static extern int ReleaseCapture();[DllImport("user32.dll")]public static extern int SendMessage(IntPtr hwnd, int wMsg, int wPar... 阅读全文

posted @ 2006-10-13 09:17 胖在一方 阅读(551) 评论(0) 推荐(0)

2006年10月9日

摘要: 显示数据.....略。要想在一张图上显示好几天(类别)的数据,(比如,4天的数据分析) 一个ChartArea + 4个Series(每一个Series绑定一天的数据)控制AxisX,AxisY的 Interval myChartArea.AxisX.Interval = CType(Me.txtAxisX.Text, Double) myChartArea.AxisY.I... 阅读全文

posted @ 2006-10-09 10:52 胖在一方 阅读(554) 评论(0) 推荐(0)

2006年9月16日

摘要: 看到了这个功能,自己实验一下。哦卡,记录一下利用msiexec.exe卸载.net程序 命令的说明 卸载产品语法msiexec /x {Package | ProductCode}参数/x卸载产品。PackageWindows 安装程序包文件的名称。ProductCodeWindows 安装程序包的全局唯一标识符 (GUID)。备注• Windows Installer 命令行选项不区分大小写。•... 阅读全文

posted @ 2006-09-16 11:47 胖在一方 阅读(1058) 评论(0) 推荐(0)

2006年9月15日

摘要: 名字实在难记,还是放在blog上吧 '----------------------------------------------------- '// 获取客户端真实的ip地址 stpangpang 2006/08/24 '----------------------------------------------------- Public Function GetClien... 阅读全文

posted @ 2006-09-15 11:18 胖在一方 阅读(283) 评论(0) 推荐(0)