Exemplo n.º 1
0
        public async Task ReadAllTextAsync_FileNotFound_ThrowException()
        {
            // Arrange
            var         nonExistingJsonFilePath = "non-existing-file.json";
            Func <Task> act = () => _testModule.ReadAllTextAsync(nonExistingJsonFilePath);
            // Act
            var ex = await Record.ExceptionAsync(act);

            // Assert
            Assert.IsType <FileNotFoundException>(ex);
        }