This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Mock<IUnitOfWork> _unitOfWorkMock; | |
private DashboardScreenController _dashboardScreenController; | |
private List<DashboardScreen> _listOfDashboardScreens; | |
private DashboardScreen _testDashboardScreen1; | |
private DashboardScreen _testDashboardScreen2; | |
private DashboardScreen _testDashboardScreen3; | |
private DashboardScreen _testDashboardScreen4; | |
private int _incorrectId = -1; | |
private int _nonExistendId = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let desc: NSSortDescriptor = NSSortDescriptor(key: Constants.CoreData.PointOfInterest.SectionInitial, ascending: true, comparator: { (leftRarity, rightRarity) -> NSComparisonResult in | |
if let sectionInitial: NSString = leftRarity as? NSString { | |
if sectionInitial == "SU" { | |
return NSComparisonResult.OrderedAscending | |
} | |
//return sectionInitial.compare(sectionInitial2 as String) | |
} | |
return NSComparisonResult.OrderedSame | |
}) |