Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 0728c021

Přidáno uživatelem Jakub Šilhavý před více než 2 roky(ů)

re #9845 Fixed some bugs in InfoFetcherTests.cs and ProcessDetectionTests.cs

Zobrazit rozdíly:

ld_client/LDClientTests/detection/InfoFetcherTests.cs
48 48
            Returns(DebuggerInfoParserTests.CorrectFileContent.Split("\n"));
49 49

  
50 50

  
51
        var result = await _defaultFetcher.FetchDataAsync();
51
        bool result = await _defaultFetcher.FetchDataAsync();
52 52

  
53 53
        Assert.IsTrue(result);
54 54
        _mockProcessUtils.Verify(x => x.ExecuteNewProcess(It.IsAny<string>(), It.IsAny<string>(),
......
70 70
            Returns(new []{""});
71 71

  
72 72

  
73
        var result = await _defaultFetcher.FetchDataAsync();
73
        bool result = await _defaultFetcher.FetchDataAsync();
74 74

  
75 75

  
76 76
        Assert.IsFalse(result);
......
86 86
        _mockFileUtils.Setup(x => x.ReadFileAllLines(It.IsAny<string>())).
87 87
            Returns(new[] { "" });
88 88

  
89
        var result = await _fetcherWithoutPars.FetchDataAsync();
89
        bool result = await _fetcherWithoutPars.FetchDataAsync();
90 90
            
91 91
        Assert.IsFalse(result);
92 92
        _mockProcessUtils.Verify(x => x.ExecuteNewProcess(It.IsAny<string>(), It.IsAny<string>(),
......
102 102
            It.IsAny<int>(), It.IsAny<int>())).Returns(true);
103 103
        _mockFileUtils.Setup(x => x.ReadFileAllLines(It.IsAny<string>())).Throws(new FileNotFoundException());
104 104

  
105
        var result = await _defaultFetcher.FetchDataAsync();
105
        bool result = await _defaultFetcher.FetchDataAsync();
106 106
        Assert.IsFalse(result);
107 107

  
108 108
        _mockProcessUtils.Verify(x => x.ExecuteNewProcess(It.IsAny<string>(), It.IsAny<string>(),

Také k dispozici: Unified diff