public void ShowMapExistence_MapExists_ExistsMessageReturned() { IFileSystemGateway fileSystemStub = new FileSystemGatewayStub { Exist = true }; MapFileExists target = new MapFileExists(fileSystemStub); string mapCode = "SomeMapCode"; string actual = target.ShowMapExistence(mapCode); Assert.AreEqual("Kml file for Map SomeMapCode exists", actual); }
public void ShowMapExistence_MapNotExists_NotFoundMessageReturned() { FileSystemGatewayStub fileSystemStub = new FileSystemGatewayStub { Exist = false }; MapFileExists target = new MapFileExists(fileSystemStub); string mapCode = "SomeMapCode"; string actual = target.ShowMapExistence(mapCode); Assert.AreEqual("NOT found for Map SomeMapCode", actual); }