Exemple #1
0
        public async Task WithValidParams_ReturnsProcessOutput()
        {
            var data = await ProcessRunner.GetProcessEncodedOutputAsync("dotnet", "--help", Encoding.UTF8);

            Assert.IsNotEmpty(data);
            Assert.IsTrue(data.StartsWith(".NET Command Line Tools"));
        }
Exemple #2
0
 public void WithInValidParams_ThrowsArgumentNullException()
 {
     Assert.ThrowsAsync <ArgumentNullException>(async() => await ProcessRunner.GetProcessEncodedOutputAsync(null));
 }