Sha256: faea5c667663b21c923962a5b44d1efd4445d749e8e48fd30efa97c0f6d1ae66
Contents?: true
Size: 1014 Bytes
Versions: 115
Compression:
Stored size: 1014 Bytes
Contents
using NUnit.Framework; [TestFixture] public class PerfectNumbersTest { [TestCase(3)] [TestCase(7, Ignore = "Remove to run test case")] [TestCase(13, Ignore = "Remove to run test case")] public void Can_classify_deficient_numbers(int number) { Assert.That(PerfectNumbers.Classify(number), Is.EqualTo(NumberType.Deficient)); } [TestCase(6, Ignore = "Remove to run test case")] [TestCase(28, Ignore = "Remove to run test case")] [TestCase(496, Ignore = "Remove to run test case")] public void Can_classify_perfect_numbers(int number) { Assert.That(PerfectNumbers.Classify(number), Is.EqualTo(NumberType.Perfect)); } [TestCase(12, Ignore = "Remove to run test case")] [TestCase(18, Ignore = "Remove to run test case")] [TestCase(20, Ignore = "Remove to run test case")] public void Can_classify_abundant_numbers(int number) { Assert.That(PerfectNumbers.Classify(number), Is.EqualTo(NumberType.Abundant)); } }
Version data entries
115 entries across 115 versions & 1 rubygems