public void ReturnsPathIfDockerFileFound(string key, string value) { var locator = new DockerfileLocator(); var dockerFile = locator.GetDockerfile(new KeyValuePair <string, string>(key, value)); Assert.NotNull(dockerFile); Assert.True(dockerFile.Exists); Assert.Equal("Dockerfile", dockerFile.Name); }
public void ThrowsIfNoDockerFilesFound() { var locator = new DockerfileLocator(); Assert.Throws <ArgumentException>(() => locator.GetDockerfile(new KeyValuePair <string, string>("this_wont_match", Guid.NewGuid().ToString()))); }