Skip to content

Commit

Permalink
Fix the test broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 25, 2024
1 parent 1063d80 commit a142f87
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public void TestSingers()
var singer = singerInfo.AddSinger();
var singerState = singerInfo.AddSingerState(singer);

var allSingers = singerInfo.Singers;
Assert.AreEqual(2, allSingers.Count);
Assert.AreEqual(singer, allSingers[0]);
Assert.AreEqual(singerState, allSingers[1]);
Assert.AreEqual(1, singerInfo.Singers.Count);
Assert.AreEqual(1, singerInfo.SingerState.Count);
Assert.AreEqual(singer, singerInfo.Singers[0]);
Assert.AreEqual(singerState, singerInfo.SingerState[0]);
}

[Test]
Expand Down Expand Up @@ -102,7 +102,8 @@ public void TestAddSingerState()
var singer = singerInfo.AddSinger();
var singerState = singerInfo.AddSingerState(singer);

Assert.AreEqual(2, singerInfo.Singers.Count);
Assert.AreEqual(1, singerInfo.Singers.Count);
Assert.AreEqual(1, singerInfo.SingerState.Count);
Assert.IsNotEmpty(singerState.ID.ToString());
Assert.IsNotEmpty(singerState.MainSingerId.ToString());
}
Expand Down

0 comments on commit a142f87

Please sign in to comment.