Revize 0728c021
Přidáno uživatelem Jakub Šilhavý před téměř 3 roky(ů)
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>(), |
ld_client/LDClientTests/detection/ProcessDetectionTests.cs | ||
---|---|---|
33 | 33 |
_mockProcessUtils = new Mock<IProcessUtils>(MockBehavior.Strict); |
34 | 34 |
|
35 | 35 |
|
36 |
_processDetection = new ProcessDetection("process", 50, _mockInfoFetcher.Object, _mockApiClient.Object, _mockProcessUtils.Object); |
|
36 |
_processDetection = new ProcessDetection("process", 50, _mockInfoFetcher.Object, _mockApiClient.Object, _mockProcessUtils.Object, 1, 0);
|
|
37 | 37 |
} |
38 | 38 |
|
39 | 39 |
|
Také k dispozici: Unified diff
re #9845 Fixed some bugs in InfoFetcherTests.cs and ProcessDetectionTests.cs