1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
class SegmentTests : Kkc.TestCase {
public SegmentTests () {
base ("Segment");
add_test ("properties", this.test_properties);
}
void test_properties () {
var segment = new Kkc.Segment ("input", "output");
string input;
string output;
segment.get ("input", out input,
"output", out output);
segment.set ("output", output);
}
}
int main (string[] args) {
Test.init (ref args);
Kkc.init ();
TestSuite root = TestSuite.get_root ();
root.add_suite (new SegmentTests ().get_suite ());
Test.run ();
return 0;
}
|