示例#1
0
        public void Type_TestingTypeIsPublic_TypeIsSavedInClass()
        {
            GiftType target = new GiftType();
            target.Type = testString;

            Assert.AreEqual(testString, target.Type);
        }
示例#2
0
        public void GiftType_AddCategory_OneCategoryInStyle()
        {
            Artwork artwork = new Artwork();
            GiftType target = new GiftType();
            target.Artworks.Add(artwork);

            Assert.AreEqual(1, target.Artworks.Count);
        }
示例#3
0
        public void GiftTypeConstructor_Null_NoArtworksCreated()
        {
            GiftType target = new GiftType();

            Assert.AreEqual(0, target.Artworks.Count);
        }