本文整理汇总了C#中Test.List类的典型用法代码示例。如果您正苦于以下问题:C# Test.List类的具体用法?C# Test.List怎么用?C# Test.List使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Test.List类属于命名空间,在下文中一共展示了Test.List类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getObjectResources
public List<TaiNguyen> getObjectResources()
{
List<TaiNguyen> tainguyenLst = new List<TaiNguyen>();
tainguyenLst.Add(LoaiTaiLieu_TaiLieu.I);
return tainguyenLst;
}
示例2: DownloadCourseData
public DownloadCourseData(string semester, string department, string courseNumber)
{
this.semester = semester;
this.department = department;
this.courseNumber = courseNumber;
finalClasses = new List<UTAClass>();
}
示例3: Main
public static int Main(string[] args)
{
try
{
Console.SetBufferSize(Console.BufferWidth, 4096);
}
catch (Exception)
{
Console.WriteLine("Failed to grow scroll-back buffer");
}
// split mode and options
var subArgs = new List<string>(args);
var firstArg = string.Empty;
if (subArgs.Count > 0)
{
firstArg = subArgs[0];
subArgs.RemoveAt(0);
}
// run whatever mode is choosen
switch(firstArg)
{
case "client":
return TestClient.Execute(subArgs);
case "server":
return TestServer.Execute(subArgs);
case "--help":
PrintHelp();
return 0;
default:
PrintHelp();
return -1;
}
}
示例4: ValidateCourses
public ValidateCourses(string semester, string department, string classNumber)
{
this.semester = semester;
this.number = classNumber;
this.department = department;
finalClasses = new List<UTAClass>();
}
示例5: BrowserControl
public BrowserControl(List<UTASearchResult> cResults, string log)
{
logFile = log;
Log("Browser Begin");
classResults = cResults;
Log("Creating Thread");
Init();
}
示例6: DepartmentListControl
/// <summary>
/// This is deprecated, this needs to be converted to using the new HttpRrquest method as WinForms really shouldnt be used in a web session.
/// </summary>
public DepartmentListControl()
{
deptNodes = new List<HtmlNode>();
thrd = new Thread(new ThreadStart(
delegate
{
Init();
System.Windows.Forms.Application.Run(this);
}));
thrd.DisableComObjectEagerCleanup();
// set thread to STA state before starting
thrd.SetApartmentState(ApartmentState.STA);
thrd.Start();
thrd.Join();
}
示例7: allTests
public static void allTests(Ice.Communicator communicator)
{
string @ref = "communicator:default -p 12010";
RemoteCommunicatorPrx com = RemoteCommunicatorPrxHelper.uncheckedCast(communicator.stringToProxy(@ref));
List<TestCase> tests = new List<TestCase>();
tests.Add(new InvocationHeartbeatTest(com));
tests.Add(new InvocationHeartbeatOnHoldTest(com));
tests.Add(new InvocationNoHeartbeatTest(com));
tests.Add(new InvocationHeartbeatCloseOnIdleTest(com));
tests.Add(new CloseOnIdleTest(com));
tests.Add(new CloseOnInvocationTest(com));
tests.Add(new CloseOnIdleAndInvocationTest(com));
tests.Add(new ForcefulCloseOnIdleAndInvocationTest(com));
tests.Add(new HeartbeatOnIdleTest(com));
tests.Add(new HeartbeatAlwaysTest(com));
tests.Add(new SetACMTest(com));
foreach(TestCase test in tests)
{
test.init();
}
foreach(TestCase test in tests)
{
test.start();
}
foreach(TestCase test in tests)
{
test.join();
}
foreach(TestCase test in tests)
{
test.destroy();
}
Console.Out.Write("shutting down... ");
Console.Out.Flush();
com.shutdown();
Console.WriteLine("ok");
}
示例8: GetList
private static List<ImagesModel> GetList()
{
var list = new List<ImagesModel>();
MysqlCon db = new MysqlCon();
MySqlConnection conn = db.connect();
MySqlCommand command = new MySqlCommand("select * from images where isdownload=0;", conn);
MySqlDataReader reader = command.ExecuteReader();
while (reader.Read())
{
list.Add(new ImagesModel { FileName = reader.GetString("filename"), Url = reader.GetString("img_url"), title = reader.GetString("title"), keyw = reader.GetString("keyw") });
}
reader.Close();
db.disconnect(conn);
return list;
}
示例9: ice_response
public override void ice_response(List<float> r, List<float> o)
{
test(Ice.CollectionComparer.Equals(_i, o));
test(Ice.CollectionComparer.Equals(_i, r));
callback.called();
}
示例10: AMI_MyClass_opLLongSI
public AMI_MyClass_opLLongSI(List<long> i)
{
_i = i;
}
示例11: AMI_MyClass_opLShortSI
public AMI_MyClass_opLShortSI(List<short> i)
{
_i = i;
}
示例12: AMI_MyClass_opLBoolSI
public AMI_MyClass_opLBoolSI(List<bool> i)
{
_i = i;
}
示例13: AMI_MyClass_opLCVPrxSI
public AMI_MyClass_opLCVPrxSI(List<CVPrx> i)
{
_i = i;
}
示例14: opLCVPrxS_async
public override void opLCVPrxS_async(AMD_MyClass_opLCVPrxS cb, List<CVPrx> i, Ice.Current current)
{
cb.ice_response(i, i);
}
示例15: AMI_MyClass_opLStructSDI
public AMI_MyClass_opLStructSDI(List<SD> i)
{
_i = i;
}