public void testCSNInvalidTS()
{
try
{
// A missing 'Z'
new Csn( "20010101000000.000000#000001#abc#000001" );
fail();
}
catch ( InvalidCSNException ice )
{
assertTrue( true );
}
try
{
// Missing milliseconds
new Csn( "20000101000000.Z#000001#abc#000001" );
fail();
}
catch ( InvalidCSNException ice )
{
assertTrue( true );
}
try
{
// Missing dot
new Csn( "20010101000000000000Z#0x1#abc#0x1" );
fail();
}
catch ( InvalidCSNException ice )
{
assertTrue( true );
}
try
{
// Missing dot and millis
new Csn( "20010101000000Z#000001#abc#000001" );
fail();
}
catch ( InvalidCSNException ice )
{
assertTrue( true );
}
try
{
// Invalid date
new Csn( "200A01010000Z#000001#abc#000001" );
fail();
}
catch ( InvalidCSNException ice )
{
assertTrue( true );