Beispiel #1
0
        public void RemoveAttributeThatWasAlreadyThereShouldRemove()
        {
            //Arrange
            var s = new SeatInfo {
                SeatAttributes = new[] { SeatAttributeEnum.Dealer }
            };

            //Act
            s.RemoveAttribute(SeatAttributeEnum.Dealer);

            //Assert
            Assert.AreEqual(0, s.SeatAttributes.Length);
            Assert.IsFalse(s.HasAttribute(SeatAttributeEnum.Dealer));
        }
Beispiel #2
0
        public void RemoveAttributeThatWasNotThereShouldDoNothing()
        {
            //Arrange
            var s = new SeatInfo {
                SeatAttributes = new[] { SeatAttributeEnum.Dealer }
            };

            //Act
            s.RemoveAttribute(SeatAttributeEnum.FirstTalker);

            //Assert
            Assert.AreEqual(1, s.SeatAttributes.Length);
            Assert.IsFalse(s.HasAttribute(SeatAttributeEnum.FirstTalker));
            Assert.IsTrue(s.HasAttribute(SeatAttributeEnum.Dealer));
        }