Exemple #1
0
		public void TestAdd ()
		{
			JSObject o = new JSObject (null);
			SymbolId si = new SymbolId (0);

			o.Add (si, 1);
			Assert.AreEqual (1, o.Count, "A1");
			Assert.IsTrue (o.ContainsKey (si), "A2");
		}
Exemple #2
0
        public void TestContainsKey()
        {
            JSObject o  = new JSObject(null);
            SymbolId si = new SymbolId(0);

            o.Add(si, 1);

            Assert.IsTrue(o.ContainsKey(si));
        }
Exemple #3
0
        public void TestAdd()
        {
            JSObject o  = new JSObject(null);
            SymbolId si = new SymbolId(0);

            o.Add(si, 1);
            Assert.AreEqual(1, o.Count, "A1");
            Assert.IsTrue(o.ContainsKey(si), "A2");
        }
Exemple #4
0
        public void TestRemove()
        {
            JSObject o  = new JSObject(null);
            SymbolId si = new SymbolId(0);

            o.Add(si, 1);
            o.Remove(si);

            Assert.AreEqual(0, o.Count);
        }
Exemple #5
0
		public void TestContainsKey ()
		{
			JSObject o = new JSObject (null);
			SymbolId si = new SymbolId (0);
			o.Add (si, 1);

			Assert.IsTrue (o.ContainsKey (si));
		}
Exemple #6
0
		public void TestRemove ()
		{
			JSObject o = new JSObject (null);
			SymbolId si = new SymbolId (0);
			o.Add (si, 1);
			o.Remove (si);

			Assert.AreEqual (0, o.Count);
		}