Import code from previous AssetBuilder version

This commit is contained in:
Jan
2019-09-24 10:45:09 +02:00
parent 5609557516
commit 0d8432d4f7
919 changed files with 154412 additions and 26 deletions

View File

@ -0,0 +1,25 @@
using System.Collections;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ZoneCodeGeneratorTests
{
public static class AssertionExtensions
{
public static void Contains(this Assert assert, object expected, ICollection collection)
{
if (collection.Cast<object>().Any(item => item == expected))
{
return;
}
throw new AssertFailedException();
}
public static void IsZero(this Assert assert, int number)
{
if(number != 0)
throw new AssertFailedException();
}
}
}