public void TestInitialize() { if (this.controller != null || this.minerComms != null) { this.TestCleanup(); if (this.controller != null || this.minerComms != null) { throw new ArgumentException("Test cleanup does not appear to be cleaning up correctly - one or more variables were expected to be null."); } } this.minerComms = new Mock<IMinerCommunication>(MockBehavior.Strict); this.minerComms.SetupAllProperties(); this.controller = new Controller(minerComms.Object, TimeSpan.FromMilliseconds(Int32.MaxValue)); }
public void TestCleanup() { this.controller = null; this.minerComms = null; }