Пример #1
0
        public void SetGridPaintSortingType_CanGetComparer(Type type)
        {
            EditorPrefs.SetString(GridPaintActiveTargetsPreferences.targetSortingModeEditorPref, type.FullName);
            var comparer = GridPaintActiveTargetsPreferences.GetTargetComparer();

            Assert.NotNull(comparer);
            Assert.AreEqual(type, comparer.GetType());
        }
Пример #2
0
        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());
        }
Пример #3
0
 public void DefaultGridPaintSorting_IsNull()
 {
     Assert.IsNull(GridPaintActiveTargetsPreferences.GetTargetComparer());
 }