public void WhenContainerNotActive_Throws() { Container.Stop(false); Action action = () => Container.LimitMemory(3000); Assert.Throws <InvalidOperationException>(action); }
public void WhenGuardIsRunning_Throws() { Container.StartGuard(); Action action = () => Container.LimitMemory(3000); Assert.Throws <InvalidOperationException>(action); }
public void SetsJobMemoryLimit() { Container.LimitMemory(2048); JobObject.Received(1).SetJobMemoryLimit(2048); }