public void PrintRelationships_ValidNumber_WritesToConsole()
        {
            // arrange
            var strategy = new BuzzStrategy();

            try
            {
                // act
                strategy.PrintRelationships(0);
            }
            catch (Exception ex)
            {
                // assert .. all we can do is explicitly fail if this code gets hit.
                Assert.Fail("Expected no exception and got this", ex);
            };
        }
Exemple #2
0
        /// <summary>
        /// The create is evenly divisible strategy.
        /// </summary>
        /// <returns>
        /// The <see cref="IIsEvenlyDivisibleStrategy"/>.
        /// </returns>
        public IIsEvenlyDivisibleStrategy CreateIsEvenlyDivisibleStrategy()
        {
            var myBuzzStrategy = new BuzzStrategy();

            return(myBuzzStrategy);
        }