mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
Added tests for Array.Empty<T>().
This commit is contained in:
parent
0d84f15e3e
commit
3d3f032d79
1 changed files with 7 additions and 4 deletions
|
|
@ -1,8 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Cosmos.TestRunner;
|
||||
|
||||
namespace Cosmos.Compiler.Tests.Bcl.System
|
||||
|
|
@ -11,6 +8,12 @@ namespace Cosmos.Compiler.Tests.Bcl.System
|
|||
{
|
||||
public static void Execute()
|
||||
{
|
||||
byte[] xEmptyByteArray = Array.Empty<byte>();
|
||||
object[] xEmptyObjectArray = Array.Empty<object>();
|
||||
|
||||
Assert.IsTrue(xEmptyByteArray.Length == 0, "Array.Empty<byte> should return an empty array!");
|
||||
Assert.IsTrue(xEmptyObjectArray.Length == 0, "Array.Empty<object> should return an empty array!");
|
||||
|
||||
byte[] xByteResult = { 1, 2, 3, 4, 5, 6, 7, 8 };
|
||||
byte[] xByteExpectedResult = { 1, 2, 3, 4, 5, 6, 7, 1 };
|
||||
byte[] xByteSource = { 1 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue