public void SaveCollection(string path, string filename, bool overwriteFile) { if (string.IsNullOrWhiteSpace(path)) { throw new CollectionException("SaveCollection path cannot be null or blank"); } if (string.IsNullOrWhiteSpace(filename)) { throw new CollectionException("SaveCollection filename cannot be null or blank"); } string fullFilePath = _fileIO.GetFullFilePath(path, filename); SaveCollection(fullFilePath, overwriteFile); }
public void getfullfilepath_null_path_throws_exception() { string path = null; string filename = "filename"; _fileIO.GetFullFilePath(path, filename); Assert.Fail("Expected GetFullFilePath to fail is the path is null"); }