public void TestBlueCompareAwardProcessUpdateWithExpiredInBetween0And5Included() { //Arrange BlueCompareAward award = new BlueCompareAward(3, 10); //Act award.ProcessUpdate(); //Assert Assert.AreEqual(award.ExpiresIn, 2); Assert.AreEqual(award.Quality, 13); Assert.AreEqual(award.ToString(), "Award Name: Blue Compare, Expires In: 2, Quality: 13"); }
public void TestBlueCompareAwardProcessUpdateWithExpiredInGreaterThan0() { //Arrange BlueCompareAward award = new BlueCompareAward(15, 10); //Act award.ProcessUpdate(); //Assert Assert.AreEqual(award.ExpiresIn, 14); Assert.AreEqual(award.Quality, 11); Assert.AreEqual(award.ToString(), "Award Name: Blue Compare, Expires In: 14, Quality: 11"); }
public void TestBlueCompareAwardProcessUpdateWithExpiredInlessThan0() { //Arrange BlueCompareAward award = new BlueCompareAward(-5, 10); //Act award.ProcessUpdate(); //Assert Assert.AreEqual(award.ExpiresIn, -6); Assert.AreEqual(award.Quality, 0); Assert.AreEqual(award.ToString(), "Award Name: Blue Compare, Expires In: -6, Quality: 0"); }