コード例 #1
0
ファイル: PrimitiveTest.cs プロジェクト: ngallagher/simplexml
 public void TestPrimitive() {
    Context context = new Source(new TreeStrategy(), new Support(), new DefaultStyle());
    Primitive primitive = new Primitive(context, new ClassType(String.class));
コード例 #2
0
ファイル: ScannerTest.cs プロジェクト: ngallagher/simplexml
 public void TestExample() {
    Support context = new Support();
    Strategy strategy = new TreeStrategy();
    Style style = new DefaultStyle();
    Source source = new Source(strategy, context, style);
    Scanner scanner = new Scanner(Example.class);
コード例 #3
0
 public void TestZero() {
    Context context = new Source(new TreeStrategy(), new Support(), new DefaultStyle());
    PrimitiveArray primitive = new PrimitiveArray(context, new ClassType(String[].class), new ClassType(String.class), "entry");
コード例 #4
0
 public void TestTwo() {
    Context context = new Source(new TreeStrategy(), new Support(), new DefaultStyle());
    PrimitiveList primitive = new PrimitiveList(context, new ClassType(List.class), new ClassType(String.class), "entry");