Skip to content

Commit 4b8b881

Browse files
committed
Ignoring all but first test so that people can red/green/refactor
1 parent 4004932 commit 4b8b881

10 files changed

Lines changed: 68 additions & 68 deletions

File tree

anagram/AnagramTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void NoMatches ()
1313
}
1414

1515

16-
[Test]
16+
[Test, Ignore]
1717
public void DetectSimpleAnagram ()
1818
{
1919
Anagram detector = new Anagram("ant");
@@ -22,7 +22,7 @@ public void DetectSimpleAnagram ()
2222
Assert.AreEqual(results, detector.Match(words));
2323
}
2424

25-
[Test]
25+
[Test, Ignore]
2626
public void DetectMultipleAnagrams ()
2727
{
2828
Anagram detector = new Anagram("master");
@@ -31,7 +31,7 @@ public void DetectMultipleAnagrams ()
3131
Assert.AreEqual(results, detector.Match(words));
3232
}
3333

34-
[Test]
34+
[Test, Ignore]
3535
public void DoesNotConfuseDifferentDuplicates ()
3636
{
3737
Anagram detector = new Anagram("galea");
@@ -40,7 +40,7 @@ public void DoesNotConfuseDifferentDuplicates ()
4040
Assert.AreEqual(results, detector.Match(words));
4141
}
4242

43-
[Test]
43+
[Test, Ignore]
4444
public void IdenticalWordIsNotAnagram ()
4545
{
4646
Anagram detector = new Anagram("corn");
@@ -49,7 +49,7 @@ public void IdenticalWordIsNotAnagram ()
4949
Assert.AreEqual(results, detector.Match(words));
5050
}
5151

52-
[Test]
52+
[Test, Ignore]
5353
public void EliminateAnagramsWithSameChecksum ()
5454
{
5555
Anagram detector = new Anagram("mass");
@@ -58,7 +58,7 @@ public void EliminateAnagramsWithSameChecksum ()
5858
Assert.AreEqual(results, detector.Match(words));
5959
}
6060

61-
[Test]
61+
[Test, Ignore]
6262
public void EliminateAnagramSubsets ()
6363
{
6464
Anagram detector = new Anagram("good");
@@ -67,7 +67,7 @@ public void EliminateAnagramSubsets ()
6767
Assert.AreEqual(results, detector.Match(words));
6868
}
6969

70-
[Test]
70+
[Test, Ignore]
7171
public void DetectAnagrams ()
7272
{
7373
Anagram detector = new Anagram("allergy");
@@ -76,7 +76,7 @@ public void DetectAnagrams ()
7676
Assert.AreEqual(results, detector.Match(words));
7777
}
7878

79-
[Test]
79+
[Test, Ignore]
8080
public void AnagramsAreCaseInsensitive ()
8181
{
8282
Anagram detector = new Anagram("Orchestra");

bob/BobTest.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,97 +17,97 @@ public void StatingSomething ()
1717
Assert.AreEqual("Whatever.", teenager.Hey("Tom-ay-to, tom-aaaah-to."));
1818
}
1919

20-
[Test]
20+
[Test, Ignore]
2121
public void Shouting ()
2222
{
2323
Assert.AreEqual("Woah, chill out!", teenager.Hey("WATCH OUT!"));
2424
}
2525

26-
[Test]
26+
[Test, Ignore]
2727
public void AskingAQuestion ()
2828
{
2929
Assert.AreEqual("Sure.", teenager.Hey("Does this cryogenic chamber make me look fat?"));
3030
}
3131

32-
[Test]
32+
[Test, Ignore]
3333
public void AskingANumericQuestion ()
3434
{
3535
Assert.AreEqual("Sure.", teenager.Hey("You are, what, like 15?"));
3636
}
3737

38-
[Test]
38+
[Test, Ignore]
3939
public void TalkingForcefully ()
4040
{
4141
Assert.AreEqual("Whatever.", teenager.Hey("Let's go make out behind the gym!"));
4242
}
4343

44-
[Test]
44+
[Test, Ignore]
4545
public void UsingAcronymsInRegularSearch ()
4646
{
4747
Assert.AreEqual("Whatever.", teenager.Hey("It's OK if you don't want to go to the DMV."));
4848
}
4949

50-
[Test]
50+
[Test, Ignore]
5151
public void ForcefulQuestions ()
5252
{
5353
Assert.AreEqual("Woah, chill out!", teenager.Hey("WHAT THE HELL WERE YOU THINKING?"));
5454
}
5555

56-
[Test]
56+
[Test, Ignore]
5757
public void ShoutingNumbers ()
5858
{
5959
Assert.AreEqual("Woah, chill out!", teenager.Hey("1, 2, 3 GO!"));
6060
}
6161

62-
[Test]
62+
[Test, Ignore]
6363
public void OnlyNumbers ()
6464
{
6565
Assert.AreEqual("Whatever.", teenager.Hey("1, 2, 3"));
6666
}
6767

68-
[Test]
68+
[Test, Ignore]
6969
public void QuestionWithOnlyNumbers ()
7070
{
7171
Assert.AreEqual("Sure.", teenager.Hey("4?"));
7272
}
7373

74-
[Test]
74+
[Test, Ignore]
7575
public void ShoutingWithSpecialCharacters ()
7676
{
7777
Assert.AreEqual("Woah, chill out!", teenager.Hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"));
7878
}
7979

80-
[Test]
80+
[Test, Ignore]
8181
public void ShoutingWithNoExclamationMark ()
8282
{
8383
Assert.AreEqual("Woah, chill out!", teenager.Hey("I HATE YOU"));
8484
}
8585

86-
[Test]
86+
[Test, Ignore]
8787
public void StatementContainingQuestionMark ()
8888
{
8989
Assert.AreEqual("Whatever.", teenager.Hey("Ending with ? means a question."));
9090
}
9191

92-
[Test]
92+
[Test, Ignore]
9393
public void PrattlingOn ()
9494
{
9595
Assert.AreEqual("Sure.", teenager.Hey("Wait! Hang on. Are you going to be OK?"));
9696
}
9797

98-
[Test]
98+
[Test, Ignore]
9999
public void Silence ()
100100
{
101101
Assert.AreEqual("Fine. Be that way!", teenager.Hey(""));
102102
}
103103

104-
[Test]
104+
[Test, Ignore]
105105
public void ProlongedSilence ()
106106
{
107107
Assert.AreEqual("Fine. Be that way!", teenager.Hey(" "));
108108
}
109109

110-
[Test]
110+
[Test, Ignore]
111111
public void MultipleLineQuestion ()
112112
{
113113
Assert.AreEqual("Whatever.", teenager.Hey("Does this cryogenic chamber make me look fat?\nno"));

etl/ETLTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ public void TransformsOneValue()
1212
Assert.That(ETL.Transform(old), Is.EquivalentTo(expected));
1313
}
1414

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

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

31-
[Test]
31+
[Test, Ignore]
3232
public void TransformsAFullDataset()
3333
{
3434
var old = new Dictionary<int, IList<string>>

grade-school/GradeSchoolTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public void NewSchoolHasAnEmptyRoster()
1818
Assert.That(school.Roster, Has.Count.EqualTo(0));
1919
}
2020

21-
[Test]
21+
[Test, Ignore]
2222
public void AddingAStudentAddsThemToTheRosterForTheGivenGrade()
2323
{
2424
school.Add("Aimee", 2);
2525
var expected = new List<string> { "Aimee" };
2626
Assert.That(school.Roster[2], Is.EqualTo(expected));
2727
}
2828

29-
[Test]
29+
[Test, Ignore]
3030
public void AddingMoreStudentsToTheSameGradeAddsThemToTheRoster()
3131
{
3232
school.Add("Blair", 2);
@@ -36,7 +36,7 @@ public void AddingMoreStudentsToTheSameGradeAddsThemToTheRoster()
3636
Assert.That(school.Roster[2], Is.EqualTo(expected));
3737
}
3838

39-
[Test]
39+
[Test, Ignore]
4040
public void AddingStudentsToDifferentGradesAddsThemToTheRoster()
4141
{
4242
school.Add("Chelsea", 3);
@@ -45,7 +45,7 @@ public void AddingStudentsToDifferentGradesAddsThemToTheRoster()
4545
Assert.That(school.Roster[7], Is.EqualTo(new List<string> { "Logan" }));
4646
}
4747

48-
[Test]
48+
[Test, Ignore]
4949
public void GradeReturnsTheStudentsInThatGradeInAlphabeticalOrder()
5050
{
5151
school.Add("Franklin", 5);
@@ -55,13 +55,13 @@ public void GradeReturnsTheStudentsInThatGradeInAlphabeticalOrder()
5555
Assert.That(school.Grade(5), Is.EqualTo(expected));
5656
}
5757

58-
[Test]
58+
[Test, Ignore]
5959
public void GradeReturnsAnEmptyListIfThereAreNoStudentsInThatGrade()
6060
{
6161
Assert.That(school.Grade(1), Is.EqualTo(new List<string>()));
6262
}
6363

64-
[Test]
64+
[Test, Ignore]
6565
public void StudentNamesInEachGradeInRosterAreSorted()
6666
{
6767
school.Add("Jennifer", 4);

hamming/HammingTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,43 @@ public void NoDifferenceBetweenEmptyStrands ()
99
Assert.AreEqual(0,Hamming.Compute("",""));
1010
}
1111

12-
[Test]
12+
[Test, Ignore]
1313
public void NoDifferenceBetweenIdenticalStrands ()
1414
{
1515
Assert.AreEqual(0,Hamming.Compute("GGACTGA","GGACTGA"));
1616
}
1717

18-
[Test]
18+
[Test, Ignore]
1919
public void CompleteHammingDistanceInSmallStrand ()
2020
{
2121
Assert.AreEqual(3,Hamming.Compute("ACT","GGA"));
2222
}
2323

24-
[Test]
24+
[Test, Ignore]
2525
public void HammingDistanceInOffByOneStrand ()
2626
{
2727
Assert.AreEqual(9,Hamming.Compute("GGACGGATTCTG","AGGACGGATTCT"));
2828
}
2929

30-
[Test]
30+
[Test, Ignore]
3131
public void SmallingHammingDistanceInMiddleSomewhere ()
3232
{
3333
Assert.AreEqual(1,Hamming.Compute("GGACG","GGTCG"));
3434
}
3535

36-
[Test]
36+
[Test, Ignore]
3737
public void LargerDistance ()
3838
{
3939
Assert.AreEqual(2,Hamming.Compute("ACCAGGG","ACTATGG"));
4040
}
4141

42-
[Test]
42+
[Test, Ignore]
4343
public void IgnoresExtraLengthOnOtherStrandWhenLonger ()
4444
{
4545
Assert.AreEqual(3,Hamming.Compute("AAACTAGGGG","AGGCTAGCGGTAGGAC"));
4646
}
4747

48-
[Test]
48+
[Test, Ignore]
4949
public void IgnoresExtraLengthOnOriginalStrandWhenLonger ()
5050
{
5151
Assert.AreEqual(5,Hamming.Compute("GACTACGGACAGGGTAGGGAAT","GACATCGCACACC"));

leap/LeapTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ public void ValidLeapYear()
99
Assert.That(Year.IsLeap(1996), Is.True);
1010
}
1111

12-
[Test]
12+
[Test, Ignore]
1313
public void InvalidLeapYear()
1414
{
1515
Assert.That(Year.IsLeap(1997), Is.False);
1616
}
1717

18-
[Test]
18+
[Test, Ignore]
1919
public void TurnOfThe20thCenturyIsNotALeapYear()
2020
{
2121
Assert.That(Year.IsLeap(1900), Is.False);
2222
}
2323

24-
[Test]
24+
[Test, Ignore]
2525
public void TurnOfThe25thCenturyIsALeapYear()
2626
{
2727
Assert.That(Year.IsLeap(2400), Is.True);

0 commit comments

Comments
 (0)