protected void runDecoderPerfTest(string encoding, CoderTestUtilities coderUtils) { IDecoder encoder = CoderFactory.getInstance().newDecoder(encoding); Assert.NotNull(encoder); // Create test structure System.IO.Stream stream = new System.IO.MemoryStream( coderUtils.createDataSeqBytes() ); // Start test DateTime startTime = System.DateTime.Now; for (int i = 0; i < 100; i++) { DataSeq dt = encoder.decode <DataSeq>(stream); stream.Position = 0; } DateTime endTime = System.DateTime.Now; TimeSpan interval = (endTime - startTime); System.Console.WriteLine("Decode elapsed time for " + encoding + ": " + interval.TotalSeconds); }
protected BERDecoderTest(CoderTestUtilities coderTestUtils) : base(coderTestUtils) { }
public BEREncoderTest(System.String sTestName, CoderTestUtilities coderTestUtils) : base(sTestName, coderTestUtils) { }
public BERDecoderTest(System.String sTestName, CoderTestUtilities coderTestUtils) : base(sTestName, coderTestUtils) { }
public BEREncoderTest(CoderTestUtilities coderTestUtils) : base(coderTestUtils) { }
public EncoderTest(System.String sTestName, CoderTestUtilities coderTestUtils) { this.coderTestUtils = coderTestUtils; }