Skip to content

Commit

Permalink
Ignoring all but first test so that people can red/green/refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bressain committed May 6, 2014
1 parent 4004932 commit 4b8b881
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 68 deletions.
16 changes: 8 additions & 8 deletions anagram/AnagramTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void NoMatches ()
}


[Test]
[Test, Ignore]
public void DetectSimpleAnagram ()
{
Anagram detector = new Anagram("ant");
Expand All @@ -22,7 +22,7 @@ public void DetectSimpleAnagram ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void DetectMultipleAnagrams ()
{
Anagram detector = new Anagram("master");
Expand All @@ -31,7 +31,7 @@ public void DetectMultipleAnagrams ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void DoesNotConfuseDifferentDuplicates ()
{
Anagram detector = new Anagram("galea");
Expand All @@ -40,7 +40,7 @@ public void DoesNotConfuseDifferentDuplicates ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void IdenticalWordIsNotAnagram ()
{
Anagram detector = new Anagram("corn");
Expand All @@ -49,7 +49,7 @@ public void IdenticalWordIsNotAnagram ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void EliminateAnagramsWithSameChecksum ()
{
Anagram detector = new Anagram("mass");
Expand All @@ -58,7 +58,7 @@ public void EliminateAnagramsWithSameChecksum ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void EliminateAnagramSubsets ()
{
Anagram detector = new Anagram("good");
Expand All @@ -67,7 +67,7 @@ public void EliminateAnagramSubsets ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void DetectAnagrams ()
{
Anagram detector = new Anagram("allergy");
Expand All @@ -76,7 +76,7 @@ public void DetectAnagrams ()
Assert.AreEqual(results, detector.Match(words));
}

[Test]
[Test, Ignore]
public void AnagramsAreCaseInsensitive ()
{
Anagram detector = new Anagram("Orchestra");
Expand Down
32 changes: 16 additions & 16 deletions bob/BobTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
6 changes: 3 additions & 3 deletions etl/ETLTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ public void TransformsOneValue()
Assert.That(ETL.Transform(old), Is.EquivalentTo(expected));
}

[Test]
[Test, Ignore]
public void TransformsMultipleValues()
{
var old = new Dictionary<int, IList<string>> { { 1, new List<string> { "A", "E", "I", "O", "U" } } };
var expected = new Dictionary<string, int> { { "a", 1 }, { "e", 1 }, { "i", 1 }, { "o", 1 }, { "u", 1 } };
Assert.That(ETL.Transform(old), Is.EquivalentTo(expected));
}

[Test]
[Test, Ignore]
public void TransformsMultipleKeys()
{
var old = new Dictionary<int, IList<string>> { { 1, new List<string> { "A", "E" } }, { 2, new List<string> { "D", "G" } } };
var expected = new Dictionary<string, int> { { "a", 1 }, { "e", 1 }, { "d", 2 }, { "g", 2 } };
Assert.That(ETL.Transform(old), Is.EquivalentTo(expected));
}

[Test]
[Test, Ignore]
public void TransformsAFullDataset()
{
var old = new Dictionary<int, IList<string>>
Expand Down
12 changes: 6 additions & 6 deletions grade-school/GradeSchoolTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public void NewSchoolHasAnEmptyRoster()
Assert.That(school.Roster, Has.Count.EqualTo(0));
}

[Test]
[Test, Ignore]
public void AddingAStudentAddsThemToTheRosterForTheGivenGrade()
{
school.Add("Aimee", 2);
var expected = new List<string> { "Aimee" };
Assert.That(school.Roster[2], Is.EqualTo(expected));
}

[Test]
[Test, Ignore]
public void AddingMoreStudentsToTheSameGradeAddsThemToTheRoster()
{
school.Add("Blair", 2);
Expand All @@ -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);
Expand All @@ -45,7 +45,7 @@ public void AddingStudentsToDifferentGradesAddsThemToTheRoster()
Assert.That(school.Roster[7], Is.EqualTo(new List<string> { "Logan" }));
}

[Test]
[Test, Ignore]
public void GradeReturnsTheStudentsInThatGradeInAlphabeticalOrder()
{
school.Add("Franklin", 5);
Expand All @@ -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<string>()));
}

[Test]
[Test, Ignore]
public void StudentNamesInEachGradeInRosterAreSorted()
{
school.Add("Jennifer", 4);
Expand Down
14 changes: 7 additions & 7 deletions hamming/HammingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
6 changes: 3 additions & 3 deletions leap/LeapTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 4b8b881

Please sign in to comment.