public void Delete_File() { string fileName = "testFile"; IActionResult actionResult = _nodeController.DeleteFile(fileName); OkObjectResult ok = actionResult as OkObjectResult; Assert.NotNull(ok); State state = ok.Value as State; Assert.NotNull(state); Assert.True(state.IsSuccess); Assert.False(_nodeService.FileExist(fileName)); Assert.True(_nodeService.TryGetBlockInfo(fileName, 0, out var info)); Assert.True(_nodeService.TryGetBlockInfo(fileName, 1, out var info2)); string filePath = $"{_nodeConfiguration.RootPath}\\{_nodeConfiguration.NodeName}\\{fileName}"; Assert.False(Directory.Exists(filePath)); }