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

Test11() public méthode

public Test11 ( int &op ) : void
op int
Résultat void
    public void Test11(ref int op) {
      Console.WriteLine("Test 11: Testing Dht Create for uniqueness ... same key");
      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;

      value = new byte[value_size];
      rng.GetBytes(value);
      this.SerialCreate(key, value, 3000, false, op++);
      Console.WriteLine("Insertion done...");
      this.SerialGet(key, results, op++);

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