示例#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());
 }