mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-25 21:08:47 +00:00
refactor: define test fixtures as internal
This commit is contained in:
parent
e8a331ff96
commit
24a7de7e8c
@ -6,7 +6,6 @@
|
|||||||
<CoverletOutputFormat>json,cobertura</CoverletOutputFormat>
|
<CoverletOutputFormat>json,cobertura</CoverletOutputFormat>
|
||||||
<CollectCoverage>true</CollectCoverage>
|
<CollectCoverage>true</CollectCoverage>
|
||||||
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
|
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
|
||||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
|
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
|
||||||
|
@ -1 +1 @@
|
|||||||
[assembly: CLSCompliant(true)]
|
[assembly: CLSCompliant(false)]
|
||||||
|
@ -3,10 +3,10 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class ArrayTests
|
internal static partial class ArrayTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AsReadOnlyTests
|
internal class AsReadOnlyTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AsReadOnly_ShouldReturnReadOnlyCollection_WhenArrayIsNotNull()
|
public void AsReadOnly_ShouldReturnReadOnlyCollection_WhenArrayIsNotNull()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class ArrayTests
|
internal static partial class ArrayTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ClearTests
|
public class ClearTests
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class ArrayTests
|
internal static partial class ArrayTests
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BoolListTests
|
internal class BoolListTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void PackByte_Should_Pack_Correctly()
|
public void PackByte_Should_Pack_Correctly()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ByteTests
|
internal class ByteTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Unpack_ShouldUnpackToArrayCorrectly()
|
public void Unpack_ShouldUnpackToArrayCorrectly()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class CollectionTests
|
internal partial class CollectionTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ClearAndDisposeAllTests
|
public class ClearAndDisposeAllTests
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class CollectionTests
|
internal partial class CollectionTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ClearAndDisposeAllAsyncTests
|
public class ClearAndDisposeAllAsyncTests
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class CollectionTests
|
internal partial class CollectionTests
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DictionaryTests
|
internal class DictionaryTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AddOrUpdate_ShouldAddNewKey_IfNotExists_GivenConcreteDictionary()
|
public void AddOrUpdate_ShouldAddNewKey_IfNotExists_GivenConcreteDictionary()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class EnumerableTests
|
internal partial class EnumerableTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DisposeAllTests
|
public class DisposeAllTests
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Collections;
|
|||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
public partial class EnumerableTests
|
internal partial class EnumerableTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DisposeAllAsyncTests
|
public class DisposeAllAsyncTests
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class EnumerableTests
|
internal partial class EnumerableTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CountWhereNot_ShouldReturnCorrectCount_GivenSequence()
|
public void CountWhereNot_ShouldReturnCorrectCount_GivenSequence()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int16Tests
|
internal class Int16Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Unpack_ShouldUnpackToArrayCorrectly()
|
public void Unpack_ShouldUnpackToArrayCorrectly()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int32Tests
|
internal class Int32Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Unpack_ShouldUnpackToArrayCorrectly()
|
public void Unpack_ShouldUnpackToArrayCorrectly()
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using X10D.Collections;
|
using X10D.Collections;
|
||||||
|
|
||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int64Tests
|
internal class Int64Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void UnpackBits_ShouldUnpackToArrayCorrectly()
|
public void UnpackBits_ShouldUnpackToArrayCorrectly()
|
||||||
@ -29,7 +30,7 @@ public class Int64Tests
|
|||||||
|
|
||||||
for (var index = 8; index < 64; index++)
|
for (var index = 8; index < 64; index++)
|
||||||
{
|
{
|
||||||
Assert.That(bits[index], Is.False, index.ToString());
|
Assert.That(bits[index], Is.False, index.ToString(CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -53,7 +54,7 @@ public class Int64Tests
|
|||||||
|
|
||||||
for (var index = 8; index < 64; index++)
|
for (var index = 8; index < 64; index++)
|
||||||
{
|
{
|
||||||
Assert.That(bits[index], Is.False, index.ToString());
|
Assert.That(bits[index], Is.False, index.ToString(CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,8 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ListTests
|
internal class ListTests
|
||||||
{
|
{
|
||||||
[CLSCompliant(false)]
|
|
||||||
[Test]
|
[Test]
|
||||||
[TestCase(1)]
|
[TestCase(1)]
|
||||||
[TestCase(1, 2, 3)]
|
[TestCase(1, 2, 3)]
|
||||||
@ -26,7 +25,6 @@ public class ListTests
|
|||||||
CollectionAssert.AreEqual(all42, list);
|
CollectionAssert.AreEqual(all42, list);
|
||||||
}
|
}
|
||||||
|
|
||||||
[CLSCompliant(false)]
|
|
||||||
[Test]
|
[Test]
|
||||||
[TestCase(1)]
|
[TestCase(1)]
|
||||||
[TestCase(1, 2, 3)]
|
[TestCase(1, 2, 3)]
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Collections;
|
|||||||
namespace X10D.Tests.Collections;
|
namespace X10D.Tests.Collections;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SpanTest
|
internal class SpanTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Count_ShouldReturn0_GivenEmptySpan()
|
public void Count_ShouldReturn0_GivenEmptySpan()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CoreTests
|
internal class CoreTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[TestCase(1)]
|
[TestCase(1)]
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EnumTests
|
internal class EnumTests
|
||||||
{
|
{
|
||||||
// Microsoft wrongfully decided to have Sunday be 0, Monday be 1, etc.
|
// Microsoft wrongfully decided to have Sunday be 0, Monday be 1, etc.
|
||||||
// I personally hate this, Sunday is not the first day of the week.
|
// I personally hate this, Sunday is not the first day of the week.
|
||||||
|
@ -7,7 +7,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class IntrinsicTests
|
internal class IntrinsicTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CorrectBoolean_ShouldReturnExpectedVector64Result_GivenInputVector()
|
public void CorrectBoolean_ShouldReturnExpectedVector64Result_GivenInputVector()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class NullableTests
|
internal class NullableTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void TryGetValue_ShouldBeTrue_GivenValue()
|
public void TryGetValue_ShouldBeTrue_GivenValue()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class RandomTests
|
internal class RandomTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void NextBoolean_ShouldBeFalse_GivenSeed1234()
|
public void NextBoolean_ShouldBeFalse_GivenSeed1234()
|
||||||
|
@ -8,7 +8,7 @@ using X10D.Core;
|
|||||||
namespace X10D.Tests.Core;
|
namespace X10D.Tests.Core;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SpanTest
|
internal class SpanTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Contains_ShouldReturnFalse_GivenReadOnlySpanWithNoMatchingElements_UsingByteEnum()
|
public void Contains_ShouldReturnFalse_GivenReadOnlySpanWithNoMatchingElements_UsingByteEnum()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CircleFTests
|
internal class CircleFTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Area_ShouldBePiRadiusRadius_GivenUnitCircle()
|
public void Area_ShouldBePiRadiusRadius_GivenUnitCircle()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CircleTests
|
internal class CircleTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Area_ShouldBePiRadiusRadius_GivenUnitCircle()
|
public void Area_ShouldBePiRadiusRadius_GivenUnitCircle()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ColorTests
|
internal class ColorTests
|
||||||
{
|
{
|
||||||
private static readonly Color Black = Color.FromArgb(0, 0, 0);
|
private static readonly Color Black = Color.FromArgb(0, 0, 0);
|
||||||
private static readonly Color White = Color.FromArgb(255, 255, 255);
|
private static readonly Color White = Color.FromArgb(255, 255, 255);
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CuboidTests
|
internal class CuboidTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Corners_ShouldBeCorrect_GivenCubeOfSize1()
|
public void Corners_ShouldBeCorrect_GivenCubeOfSize1()
|
||||||
|
@ -6,7 +6,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EllipseFTests
|
internal class EllipseFTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Area_ShouldBePiRadiusRadius_GivenUnitEllipse()
|
public void Area_ShouldBePiRadiusRadius_GivenUnitEllipse()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EllipseTests
|
internal class EllipseTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Area_ShouldBePiRadiusRadius_GivenUnitEllipse()
|
public void Area_ShouldBePiRadiusRadius_GivenUnitEllipse()
|
||||||
|
@ -6,7 +6,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Line3DTests
|
internal class Line3DTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LineFTests
|
internal class LineFTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LineTests
|
internal class LineTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
public void CompareTo_ShouldBeNegativeOne_GivenEmptyAndOne()
|
||||||
|
@ -8,7 +8,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PointFTests
|
internal class PointFTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void IsOnLine_ShouldReturnTrue_GivenPointOnLine()
|
public void IsOnLine_ShouldReturnTrue_GivenPointOnLine()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PointTests
|
internal class PointTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void IsOnLine_ShouldReturnTrue_GivenPointOnLine()
|
public void IsOnLine_ShouldReturnTrue_GivenPointOnLine()
|
||||||
|
@ -6,7 +6,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PolygonFTests
|
internal class PolygonFTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AddVertices_ShouldAddVertices()
|
public void AddVertices_ShouldAddVertices()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PolygonTests
|
internal class PolygonTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AddVertices_ShouldAddVertices()
|
public void AddVertices_ShouldAddVertices()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PolyhedronTests
|
internal class PolyhedronTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AddVertices_ShouldAddVertices()
|
public void AddVertices_ShouldAddVertices()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class RandomTests
|
internal class RandomTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void NextColorArgb_ShouldReturn331515e5_GivenSeed1234()
|
public void NextColorArgb_ShouldReturn331515e5_GivenSeed1234()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SizeTests
|
internal class SizeTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ToPoint_ShouldReturnPoint_WithEquivalentMembers()
|
public void ToPoint_ShouldReturnPoint_WithEquivalentMembers()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Drawing;
|
|||||||
namespace X10D.Tests.Drawing;
|
namespace X10D.Tests.Drawing;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SphereTests
|
internal class SphereTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Circumference_ShouldBe2PiRadius_GivenUnitCircle()
|
public void Circumference_ShouldBe2PiRadius_GivenUnitCircle()
|
||||||
|
@ -6,7 +6,7 @@ using X10D.Hosting.DependencyInjection;
|
|||||||
namespace X10D.Tests.Hosting;
|
namespace X10D.Tests.Hosting;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ServiceCollectionTests
|
internal class ServiceCollectionTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AddHostedSingleton_ShouldRegisterServiceAsSingletonAndAsHostedService()
|
public void AddHostedSingleton_ShouldRegisterServiceAsSingletonAndAsHostedService()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BooleanTests
|
internal class BooleanTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsArrayContaining1()
|
public void GetBytes_ReturnsArrayContaining1()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ByteTests
|
internal class ByteTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsArrayContainingItself()
|
public void GetBytes_ReturnsArrayContainingItself()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DirectoryInfoTests
|
internal class DirectoryInfoTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Clear_ShouldClear_GivenValidDirectory()
|
public void Clear_ShouldClear_GivenValidDirectory()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DoubleTests
|
internal class DoubleTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FileInfoTests
|
internal class FileInfoTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetHashSha1ShouldBeCorrect()
|
public void GetHashSha1ShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int16Tests
|
internal class Int16Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int32Tests
|
internal class Int32Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int64Tests
|
internal class Int64Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ListOfByteTests
|
internal class ListOfByteTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AsString_ShouldReturnBytes_GivenBytes()
|
public void AsString_ShouldReturnBytes_GivenBytes()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class SByteTests
|
||||||
public class SByteTests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsArrayContainingItself()
|
public void GetBytes_ReturnsArrayContainingItself()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SingleTests
|
internal class SingleTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadDecimal_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadDecimal_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadDouble_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadDouble_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadInt16_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadInt16_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadInt32_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadInt32_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadInt64_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadInt64_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ReadSingle_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadSingle_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt16_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadUInt16_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -16,7 +15,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt16_ShouldThrowArgumentNullException_GivenNullStream()
|
public void ReadUInt16_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -26,7 +24,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt16_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void ReadUInt16_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -39,7 +36,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt16_ShouldReadBigEndian_GivenBigEndian()
|
public void ReadUInt16_ShouldReadBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt16_ShouldReadLittleEndian_GivenLittleEndian()
|
public void ReadUInt16_ShouldReadLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt32_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadUInt32_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -16,7 +15,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt32_ShouldThrowArgumentNullException_GivenNullStream()
|
public void ReadUInt32_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -26,7 +24,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt32_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void ReadUInt32_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -39,7 +36,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt32_ShouldReadBigEndian_GivenBigEndian()
|
public void ReadUInt32_ShouldReadBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt32_ShouldReadLittleEndian_GivenLittleEndian()
|
public void ReadUInt32_ShouldReadLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt64_ShouldThrowArgumentException_GivenNonReadableStream()
|
public void ReadUInt64_ShouldThrowArgumentException_GivenNonReadableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -16,7 +15,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt64_ShouldThrowArgumentNullException_GivenNullStream()
|
public void ReadUInt64_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -26,7 +24,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt64_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void ReadUInt64_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -39,7 +36,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt64_ShouldReadBigEndian_GivenBigEndian()
|
public void ReadUInt64_ShouldReadBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void ReadUInt64_ShouldWriteLittleEndian_GivenLittleEndian()
|
public void ReadUInt64_ShouldWriteLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -4,7 +4,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteDecimal_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteDecimal_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteDouble_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteDouble_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteInt16_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteInt16_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteInt32_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteInt32_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteInt64_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteInt64_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,7 +3,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteSingle_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteSingle_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt16_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteUInt16_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -15,7 +14,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt16_ShouldThrowArgumentNullException_GivenNullStream()
|
public void WriteUInt16_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -24,7 +22,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt16_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void WriteUInt16_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -38,7 +35,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt16_ShouldWriteBigEndian_GivenBigEndian()
|
public void WriteUInt16_ShouldWriteBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt16_ShouldWriteLittleEndian_GivenLittleEndian()
|
public void WriteUInt16_ShouldWriteLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt32_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteUInt32_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -15,7 +14,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt32_ShouldThrowArgumentNullException_GivenNullStream()
|
public void WriteUInt32_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -24,7 +22,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt32_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void WriteUInt32_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -38,7 +35,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt32_ShouldWriteBigEndian_GivenBigEndian()
|
public void WriteUInt32_ShouldWriteBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt32_ShouldWriteLittleEndian_GivenLittleEndian()
|
public void WriteUInt32_ShouldWriteLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -3,10 +3,9 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt64_ShouldThrowArgumentException_GivenNonWriteableStream()
|
public void WriteUInt64_ShouldThrowArgumentException_GivenNonWriteableStream()
|
||||||
{
|
{
|
||||||
Stream stream = new DummyStream();
|
Stream stream = new DummyStream();
|
||||||
@ -15,7 +14,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt64_ShouldThrowArgumentNullException_GivenNullStream()
|
public void WriteUInt64_ShouldThrowArgumentNullException_GivenNullStream()
|
||||||
{
|
{
|
||||||
Stream stream = null!;
|
Stream stream = null!;
|
||||||
@ -24,7 +22,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt64_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
public void WriteUInt64_ShouldThrowArgumentOutOfRangeException_GivenInvalidEndiannessValue()
|
||||||
{
|
{
|
||||||
// we don't need to enclose this stream in a using declaration, since disposing a
|
// we don't need to enclose this stream in a using declaration, since disposing a
|
||||||
@ -38,7 +35,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt64_ShouldWriteBigEndian_GivenBigEndian()
|
public void WriteUInt64_ShouldWriteBigEndian_GivenBigEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
@ -55,7 +51,6 @@ public partial class StreamTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[CLSCompliant(false)]
|
|
||||||
public void WriteUInt64_ShouldWriteLittleEndian_GivenLittleEndian()
|
public void WriteUInt64_ShouldWriteLittleEndian_GivenLittleEndian()
|
||||||
{
|
{
|
||||||
using var stream = new MemoryStream();
|
using var stream = new MemoryStream();
|
||||||
|
@ -7,7 +7,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class StreamTests
|
internal partial class StreamTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetHashSha1ShouldBeCorrect()
|
public void GetHashSha1ShouldBeCorrect()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TextReaderTests
|
internal class TextReaderTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void EnumerateLines_ShouldYield10Lines_Given10LineString()
|
public void EnumerateLines_ShouldYield10Lines_Given10LineString()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenDouble_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenDouble_AndNullWriter()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenInt32_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenInt32_AndNullWriter()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenInt64_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenInt64_AndNullWriter()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenSingle_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenSingle_AndNullWriter()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenUInt32_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenUInt32_AndNullWriter()
|
||||||
|
@ -5,7 +5,7 @@ using X10D.IO;
|
|||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
public partial class TextWriterTests
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenUInt64_AndNullWriter()
|
public void WriteNoAlloc_ShouldThrowArgumentNullException_GivenUInt64_AndNullWriter()
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class TextWriterTests
|
[SuppressMessage("Design", "CA1001:Types that own disposable fields should be disposable")]
|
||||||
|
internal partial class TextWriterTests
|
||||||
{
|
{
|
||||||
private MemoryStream _stream = null!;
|
private MemoryStream _stream = null!;
|
||||||
private StreamWriter _writer = null!;
|
private StreamWriter _writer = null!;
|
||||||
|
@ -4,8 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt16Tests
|
||||||
public class UInt16Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt32Tests
|
||||||
public class UInt32Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.IO;
|
|||||||
namespace X10D.Tests.IO;
|
namespace X10D.Tests.IO;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt64Tests
|
||||||
public class UInt64Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void GetBytes_ReturnsCorrectValue()
|
public void GetBytes_ReturnsCorrectValue()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ByteTests
|
internal class ByteTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DecimalTests
|
internal class DecimalTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DoubleTests
|
internal class DoubleTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EnumerableTests
|
internal class EnumerableTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void Except_ShouldFilterElements_GivenMatchingElements()
|
public void Except_ShouldFilterElements_GivenMatchingElements()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int16Tests
|
internal class Int16Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int32Tests
|
internal class Int32Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Int64Tests
|
internal class Int64Tests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ReadOnlySpanTests
|
internal class ReadOnlySpanTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AllShouldReturnTrueForEmptySpan()
|
public void AllShouldReturnTrueForEmptySpan()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class SByteTests
|
||||||
public class SByteTests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SingleTests
|
internal class SingleTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SpanTests
|
internal class SpanTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void AllShouldReturnTrueForEmptySpan()
|
public void AllShouldReturnTrueForEmptySpan()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt16Tests
|
||||||
public class UInt16Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt32Tests
|
||||||
public class UInt32Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,8 +4,7 @@ using X10D.Linq;
|
|||||||
namespace X10D.Tests.Linq;
|
namespace X10D.Tests.Linq;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[CLSCompliant(false)]
|
internal class UInt64Tests
|
||||||
public class UInt64Tests
|
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void ProductShouldBeCorrect()
|
public void ProductShouldBeCorrect()
|
||||||
|
@ -4,7 +4,7 @@ using X10D.Math;
|
|||||||
|
|
||||||
namespace X10D.Tests.Math;
|
namespace X10D.Tests.Math;
|
||||||
|
|
||||||
public partial class BigIntegerTests
|
internal partial class BigIntegerTests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class WrapTests
|
public class WrapTests
|
||||||
|
@ -5,7 +5,7 @@ using X10D.Math;
|
|||||||
namespace X10D.Tests.Math;
|
namespace X10D.Tests.Math;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class BigIntegerTests
|
internal partial class BigIntegerTests
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void CountDigits_ShouldReturn1_Given0()
|
public void CountDigits_ShouldReturn1_Given0()
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user