using Amphora; using System; namespace Ariadne.UnitTests { /// /// Builds the tick contexts the tests hand to arcs. /// public static class TestTicks { public static ExceptionSandbox NewSandbox() { return new ExceptionSandbox(typeof(AriadneSites).Assembly); } public static TickContext At(ExceptionSandbox sandbox, TimeSpan deltaTime, TimeSpan gameTime) { return new TickContext(sandbox, deltaTime, gameTime); } public static TickContext With(ExceptionSandbox sandbox) { return At(sandbox, TimeSpan.Zero, TimeSpan.Zero); } /// /// Returns a tick context over a sandbox no other tick shares, with no time passing. /// public static TickContext Fresh() { return With(NewSandbox()); } } }