mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
62
IDE/Tests/Test1/src/Methods.bf
Normal file
62
IDE/Tests/Test1/src/Methods.bf
Normal file
|
@ -0,0 +1,62 @@
|
|||
namespace IDETest
|
||||
{
|
||||
class Methods
|
||||
{
|
||||
class ClassA
|
||||
{
|
||||
public int TEST_MethodA()
|
||||
{
|
||||
return 200;
|
||||
}
|
||||
|
||||
public int TEST_MethodB()
|
||||
{
|
||||
return 201;
|
||||
}
|
||||
|
||||
/*ClassA_MethodC
|
||||
public int TEST_MethodC()
|
||||
{
|
||||
return 202;
|
||||
}
|
||||
*/
|
||||
|
||||
public static int TEST_StaticMethodA()
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
||||
public static int TEST_StaticMethodB()
|
||||
{
|
||||
return 101;
|
||||
}
|
||||
|
||||
/*ClassA_StaticMethodC
|
||||
public static int TEST_StaticMethodC()
|
||||
{
|
||||
return 102;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public static void DoTest()
|
||||
{
|
||||
/*DoTest_Body
|
||||
ClassA ca = scope .();
|
||||
ca.TEST_MethodB();
|
||||
ca.TEST_MethodC();
|
||||
ClassA.TEST_StaticMethodB();
|
||||
ClassA.TEST_StaticMethodC();
|
||||
*/
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
//Test_Start
|
||||
ClassA ca = scope .();
|
||||
ca.TEST_MethodA();
|
||||
ClassA.TEST_StaticMethodA();
|
||||
DoTest();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue