Skip to content

Commit 559b0b1

Browse files
author
Robert El-Soudani
committed
Fix build breaks in Extensions
1 parent 8f7694b commit 559b0b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Assets/HoloToolkit/Utilities/Scripts/Extensions/Extensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.ObjectModel;
7+
using System.Linq;
48
using UnityEngine;
59

610
namespace HoloToolkit.Unity
@@ -82,7 +86,7 @@ public static int SortedInsert<TElement>(this List<TElement> elements, TElement
8286

8387
if (effectiveComparer.Compare(element, nextElement) > 0)
8488
{
85-
Assert.Fail(DiagnosticContext.Create(), "elements must already be sorted to call this method.");
89+
Debug.Assert(false, "elements must already be sorted to call this method.");
8690
break;
8791
}
8892
}
@@ -203,7 +207,7 @@ private class ReverseComparer<TElement> :
203207

204208
public ReverseComparer(IComparer<TElement> originalComparer)
205209
{
206-
Assert.IsTrue(DiagnosticContext.Create(), originalComparer != null, "originalComparer cannot be null.");
210+
Debug.Assert(originalComparer != null, "originalComparer cannot be null.");
207211

208212
this.originalComparer = originalComparer;
209213
}

0 commit comments

Comments
 (0)