kawigi.language
Class CSharpTestGenerator

java.lang.Object
  extended by kawigi.language.CSharpTestGenerator
All Implemented Interfaces:
TestGenerator

public class CSharpTestGenerator
extends java.lang.Object
implements TestGenerator


Constructor Summary
CSharpTestGenerator()
           
 
Method Summary
 java.lang.String getCode(ClassDecl cl)
          Returns C# testing code for the problem statement's example test cases.
protected  java.lang.String toTest(Test test, EditorDataType[] types)
          Quick utility function to provide the code that should return the answer.
protected static java.lang.String translateObject(EditorDataType type, java.lang.String value)
          Quck utility function to convert a value to code that creates that value in C#.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSharpTestGenerator

public CSharpTestGenerator()
Method Detail

getCode

public java.lang.String getCode(ClassDecl cl)
Returns C# testing code for the problem statement's example test cases.

Specified by:
getCode in interface TestGenerator

toTest

protected java.lang.String toTest(Test test,
                                  EditorDataType[] types)
Quick utility function to provide the code that should return the answer.


translateObject

protected static java.lang.String translateObject(EditorDataType type,
                                                  java.lang.String value)
Quck utility function to convert a value to code that creates that value in C#.