private static void AssertAsksAndReleases(int expectedAsk, int expectedRelease, TestAMRMClientOnRMRestart.MyResourceManager rm) { NUnit.Framework.Assert.AreEqual(expectedAsk, rm.GetMyFifoScheduler().lastAsk.Count ); NUnit.Framework.Assert.AreEqual(expectedRelease, rm.GetMyFifoScheduler().lastRelease .Count); }
private static void AssertBlacklistAdditionsAndRemovals(int expectedAdditions, int expectedRemovals, TestAMRMClientOnRMRestart.MyResourceManager rm) { NUnit.Framework.Assert.AreEqual(expectedAdditions, rm.GetMyFifoScheduler().lastBlacklistAdditions .Count); NUnit.Framework.Assert.AreEqual(expectedRemovals, rm.GetMyFifoScheduler().lastBlacklistRemovals .Count); }