码迷,mamicode.com
首页 >  
搜索关键字:test    ( 33746个结果
【单元测试】NUint使用详解及Visual Studio配置
阅读目录什么是单元测试?为什么使用单元测试?NUint使用详解:示例属性断言简单测试VS配置:External ToolsVisual Nunit 2010NUnit Test Adapter后记什么是单元测试? 单元测试(Unit Testing)是针对最小的可测试软件元素(单元)的,它所测试的....
分类:其他好文   时间:2014-05-15 14:29:12    阅读次数:618
try 返回前执行fianlly
try catch finally 语句中 如果try中有返回语句,如果在fianlly代码块中有对这个值修改的话,并不影响其放回值public class Test { public static void main(String[] string){ System.out.p...
分类:其他好文   时间:2014-05-15 10:38:40    阅读次数:209
奇葩的细节
public class Test { public static void main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:其他好文   时间:2014-05-15 10:13:33    阅读次数:224
SQLServer Note
1. Grant necessory permission to user account, so it can use SQL profiler.USE masterGRANT ALTER TRACE TO TEST;GRANT VIEW SERVER STATE TO TEST;USE test...
分类:数据库   时间:2014-05-15 10:09:38    阅读次数:469
UC
public class Test{ public static void main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0)); }}//false...
分类:其他好文   时间:2014-05-15 10:03:08    阅读次数:216
Javascript中的new
直接上代码function test () { } document.write(typeof test() + "") document.write(typeof new test() + "")输出结果undefinedundefined好理解,因为test函数没有返回值。那new的时候为什么会...
分类:编程语言   时间:2014-05-15 10:00:35    阅读次数:367
数组 对象!!
public class Test { public static void main(String[] string){ int[] i = new int[10]; System.out.println(i.equals(null)); }...
分类:其他好文   时间:2014-05-15 09:54:00    阅读次数:250
shell脚本-批量telnet
由于现网有时候要测试很多端口的连通性,所以就写了个小脚本,实现批量测试将telnet成功的写入到telnet_alive.txt中,失败则写入telnet_die.txt中#!/bin/bash#thisscripttestUPtootherhost.#Iplist=/opt/script_test/iplist.dataPortnumber=7001foripin$(catiplist.data)do(slee..
分类:Web程序   时间:2014-05-15 08:46:11    阅读次数:385
C语言文件操作(四)
实例四:随机读写。在C:\\TEST.TXT文件中创建如下字符串:我爱你,中国使用随机读写,输出"中国"两个字,以为中文字符占两个字节,所以要从文件首部向后偏移7个字节,逗号是英文字符,占用一个字节。#include<stdio.h>#include<stdlib.h>intmain(){FILE*fp;charc;if(..
分类:编程语言   时间:2014-05-15 00:49:19    阅读次数:325
XE6 ShortString与String相互转换
program Test;{$APPTYPE CONSOLE}uses System, System.SysUtils; const Value: array[0..5] of Byte = (5, 72, 101, 76, 76, 111); { Old ShortString represent...
分类:其他好文   时间:2014-05-14 23:42:03    阅读次数:475
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!