public void GeneratorKeyAsync_starts_with_the_specified_number() { const int startNumber = 10; var g = new IntegerKeyGenerator(startNumber); Assert.AreEqual(startNumber, g.GenerateKeyAsync().Result); Assert.AreEqual(startNumber + 1, g.GenerateKeyAsync().Result); }
public void GenerateKey_starts_with_One() { var g = new IntegerKeyGenerator(); Assert.AreEqual(1, g.GenerateKey()); }
public void GenerateKeyAsync_starts_with_One() { var g = new IntegerKeyGenerator(); Assert.AreEqual(1, g.GenerateKeyAsync().Result); }