mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 23:58:48 +00:00
[ci skip] Remove redundant GetBytes tests in /Core
This commit is contained in:
parent
5a88a06551
commit
d672032c44
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user