コード例 #1
0
        public void Cook_BuyerNull_NoException()
        {
            // Arrange
            var theCook = new Heisenberg(null);

            Assert.DoesNotThrow(theCook.Cook);
        }
コード例 #2
0
        public void Cook_BuyerIsNotNull_TheBuyerShouldBeUpdated()
        {
            // Arrange
            var theBuyer = new TucoSalamanca();
            var theCook = new Heisenberg(theBuyer);

            // Act
            theCook.Cook();

            // Assert
            Assert.IsTrue(theBuyer.OfferReceived);
        }