Example #1
0
    public void TestDiscConstructor() {
      const string testCategory = "rock";
      const int testDiscId = 0x12345678;
      const string testArtist = "R. Tist";
      const string testTitle = "Yes";

      Cddb.Disc disc = new Cddb.Disc(
        testCategory, testDiscId, testArtist, testTitle
      );

      Assert.AreEqual(testCategory, disc.Category);
      Assert.AreEqual(testDiscId, disc.DiscId);
      Assert.AreEqual(testArtist, disc.Artist);
      Assert.AreEqual(testTitle, disc.Title);
    }
Example #2
0
        public void TestDiscConstructor()
        {
            const string testCategory = "rock";
            const int    testDiscId   = 0x12345678;
            const string testArtist   = "R. Tist";
            const string testTitle    = "Yes";

            Cddb.Disc disc = new Cddb.Disc(
                testCategory, testDiscId, testArtist, testTitle
                );

            Assert.AreEqual(testCategory, disc.Category);
            Assert.AreEqual(testDiscId, disc.DiscId);
            Assert.AreEqual(testArtist, disc.Artist);
            Assert.AreEqual(testTitle, disc.Title);
        }