public string GetBaseProjectFolder() { if (string.IsNullOrEmpty(_fileName)) { return string.Empty; } return Path.GetDirectoryName(_fileName); }
public void GetBaseFolderReturnsEmptyStringIfNoFileNameIsSet() { var project = new Project(); Assert.AreEqual(string.Empty, project.GetBaseProjectFolder()); }