public void Should_Return_Values_Comma_Delimited()
        {
            var primeGenerator = new PrimeGenerator(new PrimeEvaluationEngine());

            var actual = primeGenerator.GeneratePrimesUpTo(10);

            Assert.That(actual, Is.EqualTo("2,3,5,7,9"));
        }
        public void Can_Return_Values_Comma_Delimited()
        {
            var primeGenerator = new PrimeGenerator(new PrimeEvaluationEngine());

            string actual = primeGenerator.GeneratePrimesUpTo(10);

            Assert.AreEqual("2,3,5,7,9", actual);
        }
Esempio n. 3
0
        public void Can_Return_Empty_String()
        {
            var primeGenerator = new PrimeGenerator(new PrimeEvaluationEngine());

            Assert.AreEqual(string.Empty, primeGenerator.GeneratePrimesUpTo(0));
        }
        public void Should_Return_Empty_String()
        {
            var primeGenerator = new PrimeGenerator(new PrimeEvaluationEngine());

            Assert.That(primeGenerator.GeneratePrimesUpTo(0), Is.EqualTo(string.Empty));
        }