public void SetGridPaintSortingType_CanGetComparer(Type type) { EditorPrefs.SetString(GridPaintActiveTargetsPreferences.targetSortingModeEditorPref, type.FullName); var comparer = GridPaintActiveTargetsPreferences.GetTargetComparer(); Assert.NotNull(comparer); Assert.AreEqual(type, comparer.GetType()); }
public void SetGridPaintSortingMethod_CanGetComparer(Type type, string methodName) { EditorPrefs.SetString(GridPaintActiveTargetsPreferences.targetSortingModeEditorPref, CombineTypeAndMethodName(type, methodName)); var comparer = GridPaintActiveTargetsPreferences.GetTargetComparer(); Assert.NotNull(comparer); Assert.AreEqual(type, comparer.GetType()); }
public void DefaultGridPaintSorting_IsNull() { Assert.IsNull(GridPaintActiveTargetsPreferences.GetTargetComparer()); }