Example #1
0
        public void GetElementKey_withoutAdd()
        {
            Poker        p  = new Poker();
            ElementPoker ep = new ElementPoker("hi", "there");

            Assert.AreEqual("", p.DoGetElementKey(ep), "A1");
        }
Example #2
0
        public void GetElementKey()
        {
            Poker        p  = new Poker();
            ElementPoker ep = new ElementPoker("foo", "there");

            p.Add(ep);
            Assert.AreEqual("foo", p.DoGetElementKey(ep), "A1");
        }
		public void GetElementKey_null ()
		{
			Poker p = new Poker ();
			Assert.AreEqual ("", p.DoGetElementKey (null), "A1");
		}
		public void GetElementKey_withoutAdd()
		{
			Poker p = new Poker ();
			ElementPoker ep = new ElementPoker ("hi", "there");
			Assert.AreEqual ("", p.DoGetElementKey (ep), "A1");
		}
		public void GetElementKey()
		{
			Poker p = new Poker ();
			ElementPoker ep = new ElementPoker ("foo", "there");
			p.Add (ep);
			Assert.AreEqual ("foo", p.DoGetElementKey (ep), "A1");
		}
Example #6
0
        public void GetElementKey_null()
        {
            Poker p = new Poker();

            Assert.AreEqual("", p.DoGetElementKey(null), "A1");
        }
        public void GetElementKey_null()
        {
            Poker p = new Poker();

            Assert.Throws <NullReferenceException>(() => p.DoGetElementKey(null));
        }