public void InstanceOK()
        {
            //Create an instance of the class we want to create
            clsAgeRating AnAgeRating = new clsAgeRating();

            //Test to see that it exisrs
            Assert.IsNotNull(AnAgeRating);
        }
        public void AgeRatingTitlePropertyOK()
        {
            //Create an instance of the class we want to create
            clsAgeRating AnAgeRating = new clsAgeRating();
            //Create some test data to align to the property
            string SomeAgeRatingTitle = "U";

            //Assign the data to the property
            AnAgeRating.AgeRatingTitle = SomeAgeRatingTitle;
            Assert.AreEqual(AnAgeRating.AgeRatingTitle, SomeAgeRatingTitle);
        }
        public void AgeRatingIDPropertyOK()
        {
            //Create an instance of the class we want to create
            clsAgeRating AnAgeRating = new clsAgeRating();
            //Create some test data to align to the property
            Int32 SomeAgeRatingID = 1;

            //Assign the data to the property
            AnAgeRating.AgeRatingID = SomeAgeRatingID;
            Assert.AreEqual(AnAgeRating.AgeRatingID, SomeAgeRatingID);
        }
        public void CountMatchesList()
        {
            //Create an instance of the class we want to create
            clsAgeRatingCollection AgeRatings = new clsAgeRatingCollection();
            //Create some test data to align to the property
            //In this case, the data needs to be a list of objects
            List <clsAgeRating> TestList = new List <clsAgeRating>();
            //Add an item to the list
            //Create an item of test data
            clsAgeRating TestItem = new clsAgeRating();

            //Set its properties
            TestItem.AgeRatingID    = 1;
            TestItem.AgeRatingTitle = "U";
            //Add the item to the test list
            TestList.Add(TestItem);
            //Assign the data to the property
            AgeRatings.AgeRatingList = TestList;
            //Test to see that the two values are the same
            Assert.AreEqual(AgeRatings.Count, TestList.Count);
        }