コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }