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

[ci skip] Remove redundant GetBytes tests in /Core

This commit is contained in:
Oliver Booth 2022-04-26 11:06:17 +01:00
parent 5a88a06551
commit d672032c44
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,30 +0,0 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.IO;
namespace X10D.Tests.Core;
/// <summary>
/// Tests for <see cref="ByteExtensions" />
/// </summary>
[TestClass]
public class ByteTests
{
/// <summary>
/// Tests <see cref="ByteExtensions.GetBytes" />.
/// </summary>
[TestMethod]
public void GetBytes()
{
const byte byteMinValue = byte.MinValue;
const byte byteMaxValue = byte.MaxValue;
byte[] minValueBytes = {byteMinValue};
byte[] maxValueBytes = {byteMaxValue};
byte[] minValueResult = byteMinValue.GetBytes();
byte[] maxValueResult = byteMaxValue.GetBytes();
CollectionAssert.AreEqual(minValueBytes, minValueResult);
CollectionAssert.AreEqual(maxValueBytes, maxValueResult);
}
}