Пример #1
0
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public MessageEntry() : base() {
            Tracing.TraceMsg("Created MessageEntry");
            Description d = new Description();

            this.AddExtension(d);
            Categories.Add(MESSAGE_CATEGORY);
        }
Пример #2
0
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public PlaylistEntry()
            : base() {
            Tracing.TraceMsg("Created PlaylistEntry");

            if (this.ProtocolMajor == 1) {
                Description d = new Description();
                this.AddExtension(d);
            }

            this.AddExtension(new Position());
            Categories.Add(PLAYLIST_CATEGORY);
        }
Пример #3
0
        /// <summary>
        /// Constructs a new PlayListEntry instance
        /// </summary>
        public PlaylistsEntry() : base() {
            Tracing.TraceMsg("Created PlaylistsEntry");

            if (this.ProtocolMajor == 1) {
                Description d = new Description();
                FeedLink f = new FeedLink();

                this.AddExtension(d);
                this.AddExtension(f);
            }

            CountHint c = new CountHint();
            this.AddExtension(c);
            this.AddExtension(new Private());

            Categories.Add(PLAYLISTS_CATEGORY);
        }
 public void DescriptionConstructorTest()
 {
     string initValue = "abcdefg";
     Description target = new Description(initValue);
     Assert.AreEqual(target.Value, initValue, "object should have same value after construction");
 }
 public void DescriptionConstructorTest1()
 {
     Description target = new Description();
     Assert.AreEqual(target.Value, null, "object value should be null after construction");
 }