Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Henrich <marcos.henrich@xamarin.com>2015-01-10 14:30:01 +0300
committerMarcos Henrich <marcos.henrich@xamarin.com>2015-01-10 14:30:01 +0300
commit3bcef7ef8694e81abf61bccc837abb04b79ac54b (patch)
tree188871594f89289bf5be6bcdd27bc11ed2995e93 /mcs/class/System.Runtime.Caching
parentb78211356f73c93083dcf1bcca6d5fa629f913d3 (diff)
[System.Runtime.Caching] Updated MemoryCacheTest.
When config PhysicalMemoryLimitPercentage is not set or set to zero MemoryCache.PhysicalMemoryLimit value will depend on the total physical memory available.
Diffstat (limited to 'mcs/class/System.Runtime.Caching')
-rw-r--r--mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs4
1 files changed, 0 insertions, 4 deletions
diff --git a/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs b/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
index 7ca108447fb..34ac03c5050 100644
--- a/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
+++ b/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
@@ -133,7 +133,6 @@ namespace MonoTests.System.Runtime.Caching
{
var mc = new MemoryCache ("MyCache");
Assert.AreEqual ("MyCache", mc.Name, "#A1");
- Assert.AreEqual (99, mc.PhysicalMemoryLimit, "#A2");
// Value of this property is different from system to system
//Assert.AreEqual (0, mc.CacheMemoryLimit, "#A3");
Assert.AreEqual (TimeSpan.FromMinutes (2), mc.PollingInterval, "#A4");
@@ -152,7 +151,6 @@ namespace MonoTests.System.Runtime.Caching
{
var mc = MemoryCache.Default;
Assert.AreEqual ("Default", mc.Name, "#A1");
- Assert.AreEqual (99, mc.PhysicalMemoryLimit, "#A2");
// Value of this property is different from system to system
//Assert.AreEqual (0, mc.CacheMemoryLimit, "#A3");
Assert.AreEqual (TimeSpan.FromMinutes (2), mc.PollingInterval, "#A4");
@@ -170,12 +168,10 @@ namespace MonoTests.System.Runtime.Caching
public void ConstructorValues ()
{
var config = new NameValueCollection ();
- config.Add ("PhysicalMemoryLimitPercentage", "0");
config.Add ("CacheMemoryLimitMegabytes", "1");
config.Add ("pollingInterval", "00:10:00");
var mc = new MemoryCache ("MyCache", config);
- Assert.AreEqual (99, mc.PhysicalMemoryLimit, "#A1");
Assert.AreEqual (1048576, mc.CacheMemoryLimit, "#A2");
Assert.AreEqual (TimeSpan.FromMinutes (10), mc.PollingInterval, "#A3");