Test.DhtOpTester.Test12 C# (CSharp) Méthode

Test12() public méthode

public Test12 ( int &op ) : void
op int
Résultat void
    public void Test12(ref int op) {
      Console.WriteLine("Test 12: Testing Dht Create for time idempotency " +
          "... same key and same value");
      RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
      byte[] value;
      byte[] key = new byte[10];
      rng.GetBytes(key);
      byte[][] results = new byte[1][];

      value = new byte[value_size];
      rng.GetBytes(value);
      this.SerialCreate(key, value, 3000, true, op++);
      results = new byte[1][];
      results[0] = value;

      this.SerialCreate(key, value, 3000, true, op++);
      Console.WriteLine("Insertion done...");
      this.SerialGet(key, results, op++);

      Console.WriteLine("If no error messages successful up to: " + (op - 1));
    }