UnitTests/Tests.cs
(开头部分) 40KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
#if !SILVERLIGHT
using NUnit.Framework;
using System.Data;
#endif
using System.Collections;
using System.Threading;
using fastJSON;
using System.Dynamic;
namespace UnitTests
{
#if SILVERLIGHT
public class TestAttribute : Attribute
{
}
public static class Assert
{
public static void IsNull(object o, string msg)
{
System.Diagnostics.Debug.Assert(o == null, msg);
}
public static void IsNotNull(object o)
{
System.Diagnostics.Debug.Assert(o != null);
}
public static void AreEqual(object e, object a)
{
System.Diagnostics.Debug.Assert(e.Equals(a));
}
public static void IsInstanceOf<T>(object o)
{
System.Diagnostics.Debug.Assert(typeof(T) == o.GetType());
}
}
#endif
public class Tests
{
#region [ helpers ]
static int count = 1000;
static int tcount = 5;
#if !SILVERLIGHT
static DataSet ds = new DataSet();
#endif
static bool exotic = false;
static bool dsser = false;
public enum Gender
{
Male,
Female
}
public class colclass
后面还有 1055 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
