예제 #1
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void HomeGoalsTest()
 {
     Club home = new Club("France");
        Match target = new Match(3, "home");
        int actualHomeGoals;
        actualHomeGoals = target.HomeGoals;
        Assert.AreEqual(actualHomeGoals, 3);
 }
예제 #2
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void AwayTest()
 {
     Club away = new Club("Italie");
     Match target = new Match(away, "away");
     Club actualAway;
     actualAway = target.Away;
     Assert.AreEqual(actualAway, away);
 }
예제 #3
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void AwayGoalsTest()
 {
     Club home = new Club("France");
     Club away = new Club("Italie");
     Match target = new Match(home, away, 3, 0);
     int actualAwayGoals;
     actualAwayGoals = target.AwayGoals;
     Assert.AreEqual(actualAwayGoals, 0);
 }
예제 #4
0
 public Itotal GetPointsFromMatch(Match m, bool isHome)
 {
     throw new System.NotImplementedException();
 }
예제 #5
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void IsAwayForfeitTest()
 {
     Club home = new Club("France"); // TODO: initialisez à une valeur appropriée
     Club away = new Club("Italie"); // TODO: initialisez à une valeur appropriée
     bool isAwayForfeit = false; // TODO: initialisez à une valeur appropriée
     Match target = new Match(home, away, isAwayForfeit,"away"); // TODO: initialisez à une valeur appropriée
     bool actualAwayForfeit;
     actualAwayForfeit = target.IsAwayForfeit;
     Assert.AreEqual(isAwayForfeit, actualAwayForfeit);
 }
예제 #6
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void HomeTest()
 {
     Club home = new Club("France");
        Match target = new Match(home, "home");
        Club actualHome = target.Home;
        Assert.AreEqual(actualHome, home);
 }
예제 #7
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void MatchConstructorTest1()
 {
     Club home = new Club("France");
     Club away = new Club("Italie");
     bool isBothForfeit = false;
     Match target = new Match(home, away, isBothForfeit,"");
     Club actualHome = target.Home;
     Club actualAway = target.Away;
     bool actualForfeit = target.IsHomeForfeit;
     Assert.AreEqual(actualHome, home);
     Assert.AreEqual(actualAway, away);
     Assert.AreEqual(actualForfeit, isBothForfeit);
 }
예제 #8
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
        public void MatchConstructorTest()
        {
            Club home = new Club("France");
            Club away = new Club("Italie");
            int hgoals = 0;
            int goals = 1;
            Match target = new Match(home, away, hgoals, goals);

            Club actualHome = target.Home;
            Club actualAway = target.Away;
            int homeGoals = target.HomeGoals;
            int awayGoals = target.AwayGoals;
            Assert.AreEqual(actualHome, home);
            Assert.AreEqual(actualAway, away);
            Assert.AreEqual(homeGoals, hgoals);
            Assert.AreEqual(awayGoals, goals);
        }
예제 #9
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void isHomeForfaitTest()
 {
     Club home = new Club("France");
     Club away = new Club("Italie");
     bool isHomeForfeit = true;
     Match target = new Match(home, away, isHomeForfeit,"home");
     bool actual = target.IsHomeForfeit;
     Assert.AreEqual(isHomeForfeit, actual);
 }
예제 #10
0
파일: MatchTest.cs 프로젝트: savinienL/EPSI
 public void isDrawTest()
 {
     Club home = new Club("France");
     Club away = new Club("Italie");
     Match target = new Match(home, away, 3, 3);
     bool actual = target.IsDraw;
     Assert.AreEqual(true, actual);
 }
예제 #11
0
 public void Register(Match m)
 {
     throw new System.NotImplementedException();
 }