Example #1
0
    public void Outputpath_given___extension_changed_and_correct_path()
    {
        var    sut      = new DummyTestResultXmlConverter();
        string trxFile  = "./data/nunit.trx";
        string expected = Path.Combine("./data/out", "nunit.foo");

        string actual = sut.GetOutputFile(trxFile, "./data/out");

        Assert.AreEqual(expected, actual);
    }
Example #2
0
    public void No_outpath___only_extension_changed()
    {
        var    sut      = new DummyTestResultXmlConverter();
        string trxFile  = "./data/nunit.trx";
        string expected = "./data/nunit.foo";

        string actual = sut.GetOutputFile(trxFile);

        Assert.AreEqual(expected, actual);
    }