示例#1
0
            public void WhenContainerNotActive_Throws()
            {
                Container.Stop(false);
                Action action = () => Container.LimitMemory(3000);

                Assert.Throws <InvalidOperationException>(action);
            }
示例#2
0
            public void WhenGuardIsRunning_Throws()
            {
                Container.StartGuard();

                Action action = () => Container.LimitMemory(3000);

                Assert.Throws <InvalidOperationException>(action);
            }
示例#3
0
            public void SetsJobMemoryLimit()
            {
                Container.LimitMemory(2048);

                JobObject.Received(1).SetJobMemoryLimit(2048);
            }