コード例 #1
0
        public void CanBeDominated_DominatrixRatingIsLower_ReturnsFalse()
        {
            var result = GirlDriver.CanBeDominated(new Gladiatrix {
                Name = "Amber Michaelle", IsQueen = false, CurrentRating = 5.55F
            },
                                                   new Gladiatrix {
                Name = "Goldie Blair", IsQueen = false, CurrentRating = 8.01F
            });

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void CanBeDominated_DominatrixIsQueen_ReturnsTrue()
        {
            // Arrange - nothing to arrange, the method is static

            // Act
            var result = GirlDriver.CanBeDominated(new Gladiatrix {
                Name = "Tanya Danielle", IsQueen = true, CurrentRating = 9.88F
            }, new Gladiatrix {
                Name = "Amber Michaelle", IsQueen = false, CurrentRating = 5.55F
            });

            // Assert
            Assert.IsTrue(result);
        }