Esempio n. 1
0
    public void ParseEnvironmentVariable()
    {
        var diffTools = OrderReader.ParseEnvironment("VisualStudio,Meld").ToList();

        Assert.Equal(DiffTool.VisualStudio, diffTools[0]);
        Assert.Equal(DiffTool.Meld, diffTools[1]);
    }
Esempio n. 2
0
    public void BadEnvironmentVariable()
    {
        var exception = Assert.Throws <Exception>(() => OrderReader.ParseEnvironment("Foo").ToList());

        Assert.Equal("Unable to parse tool from `DiffEngine.ToolOrder` environment variable: Foo", exception.Message);
    }