1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 00:38:47 +00:00

[ci skip] Use file-scoped namespaces for tests

This commit is contained in:
Oliver Booth 2022-04-21 12:15:29 +01:00
parent 6f96ab795c
commit 4855ae8bf2
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
8 changed files with 665 additions and 673 deletions

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="BooleanExtensions" />.
/// </summary>
@ -30,4 +30,3 @@ namespace X10D.Tests.Core
CollectionAssert.AreEqual(falseBytes, falseResult);
}
}
}

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="ByteExtensions" />
/// </summary>
@ -59,4 +59,3 @@ namespace X10D.Tests.Core
Assert.IsFalse(twoOdd);
}
}
}

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="CharExtensions" />.
/// </summary>
@ -21,4 +21,3 @@ namespace X10D.Tests.Core
Assert.ThrowsException<ArgumentOutOfRangeException>(() => character.Repeat(-1));
}
}
}

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="ComparableExtensions" />.
/// </summary>
@ -128,4 +128,3 @@ namespace X10D.Tests.Core
Assert.AreEqual(first, second.Min(first));
}
}
}

View File

@ -1,7 +1,7 @@
using System.Diagnostics;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
@ -103,4 +103,3 @@ namespace X10D.Tests.Core
Assert.AreEqual(10.0, 7.5.Round(5));
}
}
}

View File

@ -3,8 +3,8 @@ using System.Reflection;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="Int32Extensions.IsPrime(int)"/>.
/// </summary>
@ -116,4 +116,3 @@ namespace X10D.Tests.Core
return primes.AsReadOnly();
}
}
}

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="SByteExtensions" />
/// </summary>
@ -41,4 +41,3 @@ namespace X10D.Tests.Core
Assert.AreEqual(false, twoOdd);
}
}
}

View File

@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace X10D.Tests.Core
{
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="StringExtensions" />.
/// </summary>
@ -233,4 +233,3 @@ namespace X10D.Tests.Core
Assert.AreEqual(alternative, ((string?)null).WithWhiteSpaceAlternative(alternative));
}
}
}