public void TestReadReport() { // setup ButlersFolder.Initialize("xxx"); Report report = new Report(); report.Hashtable["CurrentGrade"] = -1; { // when Butler butler = Butler.GetInstance(ButlerFactory.CalmJenkins); butler.ReadReport(report); // then Assert.AreSame(butler.GetAppearance(ButlerFactory.Happy).Image, butler.Image); } { // when Butler butler = Butler.GetInstance(ButlerFactory.EmotionalJenkins); butler.ReadReport(report); // then Assert.AreSame(butler.GetAppearance(ButlerFactory.Sad).Image, butler.Image); } }