示例#1
0
        public void Select_Single_Returns_Single_Element_Matching_SellerId()
        {
            BagDML bagdml = new BagDML();

            ClearDatabase();
            InsertTestData();
            Bag expected = new Bag(1);

            Bag actual = bagdml.Select_Single("sellerId:1");

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Select_Single_With_No_Conditions_Throws_ArgumentException()
        {
            BagDML            bagdml   = new BagDML();
            ArgumentException expected = null;

            try
            {
                bagdml.Select_Single("");
            }
            catch (ArgumentException e)
            {
                expected = e;
            }

            Assert.IsNotNull(expected);
        }