mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
remove unused UnitTestDetector
This commit is contained in:
parent
19579a156c
commit
d7eb6f5e64
@ -1,17 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace QSB.Utility
|
|
||||||
{
|
|
||||||
public static class UnitTestDetector
|
|
||||||
{
|
|
||||||
public static readonly bool IsInUnitTest;
|
|
||||||
|
|
||||||
static UnitTestDetector()
|
|
||||||
{
|
|
||||||
const string testAssemblyName = "Microsoft.VisualStudio.TestPlatform.TestFramework";
|
|
||||||
IsInUnitTest = AppDomain.CurrentDomain.GetAssemblies()
|
|
||||||
.Any(a => a.FullName.StartsWith(testAssemblyName));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
||||||
using QSB.Utility;
|
|
||||||
|
|
||||||
namespace QSBTests
|
|
||||||
{
|
|
||||||
[TestClass]
|
|
||||||
public class UtilityTests
|
|
||||||
{
|
|
||||||
[TestMethod]
|
|
||||||
public void IsInUnitTest()
|
|
||||||
=> Assert.IsTrue(UnitTestDetector.IsInUnitTest, "UnitTestDetector is not working.");
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user