85 references to _mockEngine
Microsoft.Build.Tasks.UnitTests (85)
Unzip_Tests.cs (85)
37BuildEngine = _mockEngine,
44unzip.Execute().ShouldBeTrue(_mockEngine.Log);
46_mockEngine.Log.ShouldContain("638AF4AE88A146E09CB69FE1CA7083DC", customMessage: _mockEngine.Log);
65BuildEngine = _mockEngine,
72unzip.Execute().ShouldBeFalse(_mockEngine.Log);
73_mockEngine.Log = string.Empty;
78BuildEngine = _mockEngine,
85unzip2.Execute().ShouldBeTrue(_mockEngine.Log);
87_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
88_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
93BuildEngine = _mockEngine,
100unzip3.Execute().ShouldBeTrue(_mockEngine.Log);
122BuildEngine = _mockEngine,
129unzip.Execute().ShouldBeTrue(customMessage: _mockEngine.Log);
131_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
132_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
133_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "subdir", "F83E9633685494E53BEF3794EDEEE6A6.txt"), customMessage: _mockEngine.Log);
134_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "subdir", "21D6D4596067723B3AC5DF9A8B3CBFE7.txt"), customMessage: _mockEngine.Log);
144BuildEngine = _mockEngine,
148unzip.Execute().ShouldBeFalse(_mockEngine.Log);
150_mockEngine.Log.ShouldContain("MSB3931", customMessage: _mockEngine.Log);
190BuildEngine = _mockEngine,
197unzip.Execute().ShouldBeFalse(_mockEngine.Log);
199_mockEngine.Log.ShouldContain("D6DFD219DACE48F8B86EFCDF98433333.txt' is denied", customMessage: _mockEngine.Log);
214BuildEngine = _mockEngine,
219unzip.Execute().ShouldBeFalse(_mockEngine.Log);
221_mockEngine.Log.ShouldContain("MSB3933", customMessage: _mockEngine.Log);
234BuildEngine = _mockEngine,
239unzip.Execute().ShouldBeFalse(_mockEngine.Log);
241_mockEngine.Log.ShouldContain("MSB3932", customMessage: _mockEngine.Log);
259BuildEngine = _mockEngine,
267unzip.Execute().ShouldBeTrue(_mockEngine.Log);
269_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
270_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
288BuildEngine = _mockEngine,
296unzip.Execute().ShouldBeTrue(_mockEngine.Log);
298_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "BE78A17D30144B549D21F71D5C633F7D.txt"), customMessage: _mockEngine.Log);
299_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "A04FF4B88DF14860B7C73A8E75A4FB76.txt"), customMessage: _mockEngine.Log);
321BuildEngine = _mockEngine,
330unzip.Execute().ShouldBeTrue(_mockEngine.Log);
332_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file1.js"), customMessage: _mockEngine.Log);
333_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "file1.js.map"), customMessage: _mockEngine.Log);
334_mockEngine.Log.ShouldContain(Path.Combine(destination.Path, "file2.js"), customMessage: _mockEngine.Log);
335_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "readme.txt"), customMessage: _mockEngine.Log);
336_mockEngine.Log.ShouldNotContain(Path.Combine(destination.Path, "sub", "subfile.js"), customMessage: _mockEngine.Log);
354BuildEngine = _mockEngine,
362unzip.Execute().ShouldBeFalse(_mockEngine.Log);
364_mockEngine.Log.ShouldContain("MSB3937", customMessage: _mockEngine.Log);
382BuildEngine = _mockEngine,
390unzip.Execute().ShouldBeFalse(_mockEngine.Log);
392_mockEngine.Log.ShouldContain("MSB3938", customMessage: _mockEngine.Log);
410BuildEngine = _mockEngine,
418unzip.Execute().ShouldBeFalse(_mockEngine.Log);
420_mockEngine.Log.ShouldContain("MSB3937", customMessage: _mockEngine.Log);
438BuildEngine = _mockEngine,
446unzip.Execute().ShouldBeFalse(_mockEngine.Log);
448_mockEngine.Log.ShouldContain("MSB3938", customMessage: _mockEngine.Log);
472BuildEngine = _mockEngine,
478unzip.Execute().ShouldBeTrue(_mockEngine.Log);
480_mockEngine.Log.ShouldContain(unzippedFilePath, customMessage: _mockEngine.Log);