Skip to content

Commit

Permalink
Update the main code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Paul S. Boodhoo committed Feb 28, 2011
1 parent b614e7f commit cafd47f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
11 changes: 4 additions & 7 deletions product/nothinbutdotnetprep.specs/MovieLibrarySpecs.cs
Expand Up @@ -81,11 +81,7 @@ public class when_counting_the_number_of_movies : movie_library_concern
Because b = () =>
number_of_movies = sut.all_movies().Count();

It should_return_the_number_of_all_movies_in_the_library = () =>
{
Console.Out.WriteLine("This should be cool");
number_of_movies.ShouldEqual(2);
};
It should_return_the_number_of_all_movies_in_the_library = () => { number_of_movies.ShouldEqual(2); };
}

[Subject(typeof(MovieLibrary))]
Expand All @@ -103,9 +99,10 @@ public class when_asked_for_all_of_the_movies : movie_library_concern
movie_collection.add_all(first_movie, second_movie);
};

Because b = () => { all_movies = sut.all_movies(); };
Because b = () =>
all_movies = sut.all_movies();

It should_receive_a_set_containing_each_movie_in_the_library = () =>
It should_receive_a_set_containing_each_movie_in_the_library = () =>
all_movies.ShouldContainOnly(first_movie, second_movie);
}

Expand Down
10 changes: 5 additions & 5 deletions product/nothinbutdotnetprep/collections/Genre.cs
Expand Up @@ -2,10 +2,10 @@ namespace nothinbutdotnetprep.collections
{
public class Genre
{
public static readonly Genre action = new Genre();
public static readonly Genre thriller = new Genre();
public static readonly Genre comedy = new Genre();
public static readonly Genre kids = new Genre();
public static readonly Genre horror = new Genre();
public static readonly Genre action = new Genre();
public static readonly Genre thriller = new Genre();
public static readonly Genre comedy = new Genre();
public static readonly Genre kids = new Genre();
public static readonly Genre horror = new Genre();
}
}
2 changes: 1 addition & 1 deletion product/nothinbutdotnetprep/collections/Movie.cs
Expand Up @@ -2,7 +2,7 @@

namespace nothinbutdotnetprep.collections
{
public class Movie
public class Movie
{
public string title { get; set; }
public ProductionStudio production_studio { get; set; }
Expand Down

0 comments on commit cafd47f

Please sign in to comment.