From 4b8b881fac20267ceffecc2b8178dae4b2bbdded Mon Sep 17 00:00:00 2001 From: Bressain Dinkelman Date: Mon, 5 May 2014 22:19:59 -0600 Subject: [PATCH] Ignoring all but first test so that people can red/green/refactor --- anagram/AnagramTest.cs | 16 ++++++------- bob/BobTest.cs | 32 ++++++++++++------------- etl/ETLTest.cs | 6 ++--- grade-school/GradeSchoolTest.cs | 12 +++++----- hamming/HammingTest.cs | 14 +++++------ leap/LeapTest.cs | 6 ++--- nucleotide-count/NucleotideCountTest.cs | 16 ++++++------- phone-number/PhoneNumberTest.cs | 12 +++++----- robot-name/RobotNameTest.cs | 6 ++--- word-count/WordCountTest.cs | 16 ++++++------- 10 files changed, 68 insertions(+), 68 deletions(-) diff --git a/anagram/AnagramTest.cs b/anagram/AnagramTest.cs index 42c90f7f9e..300abbd659 100644 --- a/anagram/AnagramTest.cs +++ b/anagram/AnagramTest.cs @@ -13,7 +13,7 @@ public void NoMatches () } - [Test] + [Test, Ignore] public void DetectSimpleAnagram () { Anagram detector = new Anagram("ant"); @@ -22,7 +22,7 @@ public void DetectSimpleAnagram () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void DetectMultipleAnagrams () { Anagram detector = new Anagram("master"); @@ -31,7 +31,7 @@ public void DetectMultipleAnagrams () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void DoesNotConfuseDifferentDuplicates () { Anagram detector = new Anagram("galea"); @@ -40,7 +40,7 @@ public void DoesNotConfuseDifferentDuplicates () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void IdenticalWordIsNotAnagram () { Anagram detector = new Anagram("corn"); @@ -49,7 +49,7 @@ public void IdenticalWordIsNotAnagram () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void EliminateAnagramsWithSameChecksum () { Anagram detector = new Anagram("mass"); @@ -58,7 +58,7 @@ public void EliminateAnagramsWithSameChecksum () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void EliminateAnagramSubsets () { Anagram detector = new Anagram("good"); @@ -67,7 +67,7 @@ public void EliminateAnagramSubsets () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void DetectAnagrams () { Anagram detector = new Anagram("allergy"); @@ -76,7 +76,7 @@ public void DetectAnagrams () Assert.AreEqual(results, detector.Match(words)); } - [Test] + [Test, Ignore] public void AnagramsAreCaseInsensitive () { Anagram detector = new Anagram("Orchestra"); diff --git a/bob/BobTest.cs b/bob/BobTest.cs index d6d99b20b8..ee9f3bb80c 100644 --- a/bob/BobTest.cs +++ b/bob/BobTest.cs @@ -17,97 +17,97 @@ public void StatingSomething () Assert.AreEqual("Whatever.", teenager.Hey("Tom-ay-to, tom-aaaah-to.")); } - [Test] + [Test, Ignore] public void Shouting () { Assert.AreEqual("Woah, chill out!", teenager.Hey("WATCH OUT!")); } - [Test] + [Test, Ignore] public void AskingAQuestion () { Assert.AreEqual("Sure.", teenager.Hey("Does this cryogenic chamber make me look fat?")); } - [Test] + [Test, Ignore] public void AskingANumericQuestion () { Assert.AreEqual("Sure.", teenager.Hey("You are, what, like 15?")); } - [Test] + [Test, Ignore] public void TalkingForcefully () { Assert.AreEqual("Whatever.", teenager.Hey("Let's go make out behind the gym!")); } - [Test] + [Test, Ignore] public void UsingAcronymsInRegularSearch () { Assert.AreEqual("Whatever.", teenager.Hey("It's OK if you don't want to go to the DMV.")); } - [Test] + [Test, Ignore] public void ForcefulQuestions () { Assert.AreEqual("Woah, chill out!", teenager.Hey("WHAT THE HELL WERE YOU THINKING?")); } - [Test] + [Test, Ignore] public void ShoutingNumbers () { Assert.AreEqual("Woah, chill out!", teenager.Hey("1, 2, 3 GO!")); } - [Test] + [Test, Ignore] public void OnlyNumbers () { Assert.AreEqual("Whatever.", teenager.Hey("1, 2, 3")); } - [Test] + [Test, Ignore] public void QuestionWithOnlyNumbers () { Assert.AreEqual("Sure.", teenager.Hey("4?")); } - [Test] + [Test, Ignore] public void ShoutingWithSpecialCharacters () { Assert.AreEqual("Woah, chill out!", teenager.Hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!")); } - [Test] + [Test, Ignore] public void ShoutingWithNoExclamationMark () { Assert.AreEqual("Woah, chill out!", teenager.Hey("I HATE YOU")); } - [Test] + [Test, Ignore] public void StatementContainingQuestionMark () { Assert.AreEqual("Whatever.", teenager.Hey("Ending with ? means a question.")); } - [Test] + [Test, Ignore] public void PrattlingOn () { Assert.AreEqual("Sure.", teenager.Hey("Wait! Hang on. Are you going to be OK?")); } - [Test] + [Test, Ignore] public void Silence () { Assert.AreEqual("Fine. Be that way!", teenager.Hey("")); } - [Test] + [Test, Ignore] public void ProlongedSilence () { Assert.AreEqual("Fine. Be that way!", teenager.Hey(" ")); } - [Test] + [Test, Ignore] public void MultipleLineQuestion () { Assert.AreEqual("Whatever.", teenager.Hey("Does this cryogenic chamber make me look fat?\nno")); diff --git a/etl/ETLTest.cs b/etl/ETLTest.cs index bc149060fa..cfdcdf70f7 100644 --- a/etl/ETLTest.cs +++ b/etl/ETLTest.cs @@ -12,7 +12,7 @@ public void TransformsOneValue() Assert.That(ETL.Transform(old), Is.EquivalentTo(expected)); } - [Test] + [Test, Ignore] public void TransformsMultipleValues() { var old = new Dictionary> { { 1, new List { "A", "E", "I", "O", "U" } } }; @@ -20,7 +20,7 @@ public void TransformsMultipleValues() Assert.That(ETL.Transform(old), Is.EquivalentTo(expected)); } - [Test] + [Test, Ignore] public void TransformsMultipleKeys() { var old = new Dictionary> { { 1, new List { "A", "E" } }, { 2, new List { "D", "G" } } }; @@ -28,7 +28,7 @@ public void TransformsMultipleKeys() Assert.That(ETL.Transform(old), Is.EquivalentTo(expected)); } - [Test] + [Test, Ignore] public void TransformsAFullDataset() { var old = new Dictionary> diff --git a/grade-school/GradeSchoolTest.cs b/grade-school/GradeSchoolTest.cs index cf104b4890..ba85051c5e 100644 --- a/grade-school/GradeSchoolTest.cs +++ b/grade-school/GradeSchoolTest.cs @@ -18,7 +18,7 @@ public void NewSchoolHasAnEmptyRoster() Assert.That(school.Roster, Has.Count.EqualTo(0)); } - [Test] + [Test, Ignore] public void AddingAStudentAddsThemToTheRosterForTheGivenGrade() { school.Add("Aimee", 2); @@ -26,7 +26,7 @@ public void AddingAStudentAddsThemToTheRosterForTheGivenGrade() Assert.That(school.Roster[2], Is.EqualTo(expected)); } - [Test] + [Test, Ignore] public void AddingMoreStudentsToTheSameGradeAddsThemToTheRoster() { school.Add("Blair", 2); @@ -36,7 +36,7 @@ public void AddingMoreStudentsToTheSameGradeAddsThemToTheRoster() Assert.That(school.Roster[2], Is.EqualTo(expected)); } - [Test] + [Test, Ignore] public void AddingStudentsToDifferentGradesAddsThemToTheRoster() { school.Add("Chelsea", 3); @@ -45,7 +45,7 @@ public void AddingStudentsToDifferentGradesAddsThemToTheRoster() Assert.That(school.Roster[7], Is.EqualTo(new List { "Logan" })); } - [Test] + [Test, Ignore] public void GradeReturnsTheStudentsInThatGradeInAlphabeticalOrder() { school.Add("Franklin", 5); @@ -55,13 +55,13 @@ public void GradeReturnsTheStudentsInThatGradeInAlphabeticalOrder() Assert.That(school.Grade(5), Is.EqualTo(expected)); } - [Test] + [Test, Ignore] public void GradeReturnsAnEmptyListIfThereAreNoStudentsInThatGrade() { Assert.That(school.Grade(1), Is.EqualTo(new List())); } - [Test] + [Test, Ignore] public void StudentNamesInEachGradeInRosterAreSorted() { school.Add("Jennifer", 4); diff --git a/hamming/HammingTest.cs b/hamming/HammingTest.cs index 619700f2b2..205f359ac2 100644 --- a/hamming/HammingTest.cs +++ b/hamming/HammingTest.cs @@ -9,43 +9,43 @@ public void NoDifferenceBetweenEmptyStrands () Assert.AreEqual(0,Hamming.Compute("","")); } - [Test] + [Test, Ignore] public void NoDifferenceBetweenIdenticalStrands () { Assert.AreEqual(0,Hamming.Compute("GGACTGA","GGACTGA")); } - [Test] + [Test, Ignore] public void CompleteHammingDistanceInSmallStrand () { Assert.AreEqual(3,Hamming.Compute("ACT","GGA")); } - [Test] + [Test, Ignore] public void HammingDistanceInOffByOneStrand () { Assert.AreEqual(9,Hamming.Compute("GGACGGATTCTG","AGGACGGATTCT")); } - [Test] + [Test, Ignore] public void SmallingHammingDistanceInMiddleSomewhere () { Assert.AreEqual(1,Hamming.Compute("GGACG","GGTCG")); } - [Test] + [Test, Ignore] public void LargerDistance () { Assert.AreEqual(2,Hamming.Compute("ACCAGGG","ACTATGG")); } - [Test] + [Test, Ignore] public void IgnoresExtraLengthOnOtherStrandWhenLonger () { Assert.AreEqual(3,Hamming.Compute("AAACTAGGGG","AGGCTAGCGGTAGGAC")); } - [Test] + [Test, Ignore] public void IgnoresExtraLengthOnOriginalStrandWhenLonger () { Assert.AreEqual(5,Hamming.Compute("GACTACGGACAGGGTAGGGAAT","GACATCGCACACC")); diff --git a/leap/LeapTest.cs b/leap/LeapTest.cs index 75b42dc063..e4da7d5dfe 100644 --- a/leap/LeapTest.cs +++ b/leap/LeapTest.cs @@ -9,19 +9,19 @@ public void ValidLeapYear() Assert.That(Year.IsLeap(1996), Is.True); } - [Test] + [Test, Ignore] public void InvalidLeapYear() { Assert.That(Year.IsLeap(1997), Is.False); } - [Test] + [Test, Ignore] public void TurnOfThe20thCenturyIsNotALeapYear() { Assert.That(Year.IsLeap(1900), Is.False); } - [Test] + [Test, Ignore] public void TurnOfThe25thCenturyIsALeapYear() { Assert.That(Year.IsLeap(2400), Is.True); diff --git a/nucleotide-count/NucleotideCountTest.cs b/nucleotide-count/NucleotideCountTest.cs index 77fd162dcf..a8eae6583d 100644 --- a/nucleotide-count/NucleotideCountTest.cs +++ b/nucleotide-count/NucleotideCountTest.cs @@ -12,21 +12,21 @@ public void HasNoNucleotides() Assert.That(dna.NucleotideCounts, Is.EquivalentTo(expected)); } - [Test] + [Test, Ignore] public void HasNoAdenosine() { var dna = new DNA(""); Assert.That(dna.Count('A'), Is.EqualTo(0)); } - [Test] + [Test, Ignore] public void RepetitiveCytidineGetsCounts() { var dna = new DNA("CCCCC"); Assert.That(dna.Count('C'), Is.EqualTo(5)); } - [Test] + [Test, Ignore] public void RepetitiveSequenceHasOnlyGuanosine() { var dna = new DNA("GGGGGGGG"); @@ -34,14 +34,14 @@ public void RepetitiveSequenceHasOnlyGuanosine() Assert.That(dna.NucleotideCounts, Is.EquivalentTo(expected)); } - [Test] + [Test, Ignore] public void CountsOnlyThymidine() { var dna = new DNA("GGGGTAACCCGG"); Assert.That(dna.Count('T'), Is.EqualTo(1)); } - [Test] + [Test, Ignore] public void CountsANucleotideOnlyOnce() { var dna = new DNA("GGTTGG"); @@ -49,21 +49,21 @@ public void CountsANucleotideOnlyOnce() Assert.That(dna.Count('T'), Is.EqualTo(2)); } - [Test] + [Test, Ignore] public void HasNoUracil() { var dna = new DNA("GGTTGG"); Assert.That(dna.Count('U'), Is.EqualTo(0)); } - [Test] + [Test, Ignore] public void ValidatesNucleotides() { var dna = new DNA("GGTTGG"); Assert.Throws(() => dna.Count('X')); } - [Test] + [Test, Ignore] public void CountsAllNucleotides() { var dna = new DNA("AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC"); diff --git a/phone-number/PhoneNumberTest.cs b/phone-number/PhoneNumberTest.cs index 1556b58541..fd25f204b1 100644 --- a/phone-number/PhoneNumberTest.cs +++ b/phone-number/PhoneNumberTest.cs @@ -10,42 +10,42 @@ public void CleansParensSpacesAndDashes() Assert.That(phone.Number, Is.EqualTo("1234567890")); } - [Test] + [Test, Ignore] public void CleansNumbersWithDots() { var phone = new PhoneNumber("123.456.7890"); Assert.That(phone.Number, Is.EqualTo("1234567890")); } - [Test] + [Test, Ignore] public void AllowsUsCountryCode() { var phone = new PhoneNumber("11234567890"); Assert.That(phone.Number, Is.EqualTo("1234567890")); } - [Test] + [Test, Ignore] public void InvalidWhen11Digits() { var phone = new PhoneNumber("21234567890"); Assert.That(phone.Number, Is.EqualTo("0000000000")); } - [Test] + [Test, Ignore] public void InvalidWhen9Digits() { var phone = new PhoneNumber("123456789"); Assert.That(phone.Number, Is.EqualTo("0000000000")); } - [Test] + [Test, Ignore] public void HasAnAreaCode() { var phone = new PhoneNumber("1234567890"); Assert.That(phone.AreaCode, Is.EqualTo("123")); } - [Test] + [Test, Ignore] public void FormatsANumber() { var phone = new PhoneNumber("1234567890"); diff --git a/robot-name/RobotNameTest.cs b/robot-name/RobotNameTest.cs index 277d926a29..66b0fd0470 100644 --- a/robot-name/RobotNameTest.cs +++ b/robot-name/RobotNameTest.cs @@ -17,20 +17,20 @@ public void RobotHasAName() StringAssert.IsMatch(@"\w{2}\d{3}", robot.Name); } - [Test] + [Test, Ignore] public void NameIsTheSameEachTime() { Assert.That(robot.Name, Is.EqualTo(robot.Name)); } - [Test] + [Test, Ignore] public void DifferentRobotsHaveDifferentNames() { var robot2 = new Robot(); Assert.That(robot.Name, Is.Not.EqualTo(robot2.Name)); } - [Test] + [Test, Ignore] public void CanResetTheName() { var originalName = robot.Name; diff --git a/word-count/WordCountTest.cs b/word-count/WordCountTest.cs index 65a1bbdfef..6136f2e75b 100644 --- a/word-count/WordCountTest.cs +++ b/word-count/WordCountTest.cs @@ -15,7 +15,7 @@ public void CountOneWord () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void CountOneOfEach () { Phrase phrase = new Phrase("one of each"); @@ -28,7 +28,7 @@ public void CountOneOfEach () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void CountMultipleOccurrences () { Phrase phrase = new Phrase("one fish two fish red fish blue fish"); @@ -43,7 +43,7 @@ public void CountMultipleOccurrences () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void CountEverythingJustOnce () { Phrase phrase = new Phrase("all the kings horses and all the kings men"); @@ -59,7 +59,7 @@ public void CountEverythingJustOnce () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void IgnorePunctuation () { Phrase phrase = new Phrase("car : carpet as java : javascript!!&@$%^&"); @@ -74,7 +74,7 @@ public void IgnorePunctuation () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void HandlesCrampedList () { Phrase phrase = new Phrase("one,two,three"); @@ -87,7 +87,7 @@ public void HandlesCrampedList () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void IncludeNumbers () { Phrase phrase = new Phrase("testing, 1, 2 testing"); @@ -100,7 +100,7 @@ public void IncludeNumbers () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void NormalizeCase () { Phrase phrase = new Phrase("go Go GO"); @@ -111,7 +111,7 @@ public void NormalizeCase () Assert.AreEqual(counts,phrase.WordCount()); } - [Test] + [Test, Ignore] public void WithApostrophes () { Phrase phrase = new Phrase("First: don't laugh. Then: don't cry.");