Ejemplo n.º 1
0
        public async Task GetHashesPerSecAsyncTest()
        {
            // Act - fetch hashes per second value on the local node
            var hashes = await Generate.GetHashesPerSecAsync(Generate.CliOptions.ChainName);

            // Assert
            Assert.IsEmpty(hashes.Error);
            Assert.IsInstanceOf <int>(hashes.Result);
            Assert.IsInstanceOf <CliResponse <int> >(hashes);
            Assert.IsInstanceOf <CLIRequest>(hashes.Request);
        }