AgileWallaby.Ehcache.Test.Silverlight.ConnectivityTest.Can_Get_Count C# (CSharp) Method

Can_Get_Count() private method

private Can_Get_Count ( ) : void
return void
        public void Can_Get_Count()
        {
            var dictionary = (IDictionary)new EhcacheServerDictionary(endpoint, "sampleCache1");

            Assert.AreEqual(0, dictionary.Count);
            dictionary["testKey1"] = "testValue1";
            Assert.AreEqual(1, dictionary.Count);
            dictionary["testKey2"] = "testValue2";
            Assert.AreEqual(2, dictionary.Count);

            var dictionary2 = new EhcacheServerDictionary(endpoint, "sampleCache2");
            dictionary2.Clear();

            dictionary2["testKey1"] = "testValue1";
            Assert.AreEqual(2, dictionary.Count);
            Assert.AreEqual(1, dictionary2.Count);
        }
    }
ConnectivityTest