public void Default() { // Arrange var dice = new DiceGroup(1, 6); // Assert Assert.AreEqual(1, dice.Quantity); Assert.AreEqual(6, dice.Quality); Assert.AreEqual("1d6", dice.ToString()); }
public void NotEqualsOp_NullLeft_NotEqual() { // Arrange var dice = new DiceGroup(1, 6); // Act bool unequal = null != dice; // Assert Assert.IsTrue(unequal, "An instance of DiceGroup should never be equal to null."); }
public void NotEqualsOp_DiffQuality_NotEqual() { // Arrange var dice1 = new DiceGroup(1, 6); var dice2 = new DiceGroup(1, 8); // Act bool unequal1 = dice1 != dice2; bool unequal2 = dice2 != dice1; // Assert Assert.IsTrue(unequal1, "An instance of DiceGroup should not be equal if they have different qualities."); Assert.IsTrue(unequal2, "An instance of DiceGroup should not be equal if they have different qualities."); }