Disable tests code when not in test build

This commit is contained in:
Wojtek Figat
2023-04-12 10:41:42 +02:00
parent 9ecfe90708
commit 1a604e24a0
20 changed files with 42 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using System.Collections; using System.Collections;
using FlaxEngine.Collections; using FlaxEngine.Collections;
@@ -525,3 +526,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -38,3 +39,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using FlaxEngine.GUI; using FlaxEngine.GUI;
using NUnit.Framework; using NUnit.Framework;
using Assert = FlaxEngine.Assertions.Assert; using Assert = FlaxEngine.Assertions.Assert;
@@ -54,3 +55,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using FlaxEngine.GUI; using FlaxEngine.GUI;
using NUnit.Framework; using NUnit.Framework;
using Assert = FlaxEngine.Assertions.Assert; using Assert = FlaxEngine.Assertions.Assert;
@@ -110,3 +111,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using System.Globalization; using System.Globalization;
using NUnit.Framework; using NUnit.Framework;
@@ -62,3 +63,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -20,3 +21,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -20,3 +21,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using FlaxEditor.History; using FlaxEditor.History;
using NUnit.Framework; using NUnit.Framework;
@@ -136,3 +137,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System.Collections.Generic; using System.Collections.Generic;
using FlaxEngine.Utilities; using FlaxEngine.Utilities;
using NUnit.Framework; using NUnit.Framework;
@@ -116,3 +117,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -54,3 +57,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using FlaxEditor.Utilities; using FlaxEditor.Utilities;
using NUnit.Framework; using NUnit.Framework;
@@ -28,3 +29,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -36,3 +37,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using FlaxEditor.Utilities; using FlaxEditor.Utilities;
using NUnit.Framework; using NUnit.Framework;
@@ -80,3 +81,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using FlaxEditor.SceneGraph; using FlaxEditor.SceneGraph;
@@ -130,3 +131,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
@@ -171,3 +172,4 @@ namespace FlaxEngine
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using FlaxEngine.Json; using FlaxEngine.Json;
using NUnit.Framework; using NUnit.Framework;
@@ -150,3 +151,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using NUnit.Framework; using NUnit.Framework;
namespace FlaxEngine.Tests namespace FlaxEngine.Tests
@@ -24,3 +25,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System.Linq; using System.Linq;
using FlaxEditor.Surface; using FlaxEditor.Surface;
using NUnit.Framework; using NUnit.Framework;
@@ -56,3 +57,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using FlaxEngine.Utilities; using FlaxEngine.Utilities;
using NUnit.Framework; using NUnit.Framework;
@@ -171,3 +172,4 @@ namespace FlaxEngine.Tests
} }
} }
} }
#endif

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. // Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System; using System;
using NUnit.Framework; using NUnit.Framework;
using Assert = FlaxEngine.Assertions.Assert; using Assert = FlaxEngine.Assertions.Assert;
@@ -404,3 +405,4 @@ namespace FlaxEditor.Tests
} }
} }
} }
#endif