Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and tidy assemblies #464

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/Machine.Specifications.Should.Specs/AssertionSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Machine.Specifications.Should.Specs
{
[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EnumerableExtensions))]
class when_checking_if_a_collection_contains_elements_that_match_a_func
{
static Exception exception;
Expand All @@ -20,7 +20,7 @@ class when_checking_if_a_collection_contains_elements_that_match_a_func
exception.Message.ShouldContain("Should contain elements conforming to: x => (x > 3)");
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EnumerableExtensions))]
class when_checking_if_a_collection_contains_elements_that_do_not_match_a_func
{
static Exception exception;
Expand All @@ -40,7 +40,7 @@ class when_checking_if_a_collection_contains_elements_that_do_not_match_a_func
exception.Message.ShouldMatch(@"does contain: {\s+\[1\],\s+\[2\]\s+}");
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EnumerableExtensions))]
class when_checking_if_a_collection_contains_only_elements_that_match_a_func
{
static Exception exception;
Expand All @@ -63,7 +63,7 @@ class when_checking_if_a_collection_contains_only_elements_that_match_a_func
exception.Message.ShouldMatch(@"the following items did not meet the condition: {\s+\[1\],\s+\[3\]\s+}");
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EnumerableExtensions))]
class when_a_list_contains_an_element_of_another_list
{
static Exception spec_exception;
Expand All @@ -88,7 +88,7 @@ class when_a_list_contains_an_element_of_another_list
spec_exception.ShouldBeNull();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EnumerableExtensions))]
class when_a_list_not_contains_an_element_of_another_list
{
static Exception spec_exception;
Expand Down Expand Up @@ -117,7 +117,7 @@ class when_a_list_not_contains_an_element_of_another_list
spec_exception.ShouldBeOfExactType<SpecificationException>();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(StringExtensions))]
class when_a_null_string_is_asserted_on
{
static string a_string;
Expand All @@ -138,7 +138,7 @@ class when_a_null_string_is_asserted_on
Catch.Exception(() => a_string.ShouldNotBeNull()).ShouldBeOfExactType<SpecificationException>();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(StringExtensions))]
class when_an_empty_string_is_asserted_on
{
static string a_string;
Expand All @@ -159,7 +159,7 @@ class when_an_empty_string_is_asserted_on
Catch.Exception(() => a_string.ShouldNotBeNull()).ShouldBeNull();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(StringExtensions))]
class when_an_non_empty_string_is_asserted_on
{
static string a_string;
Expand All @@ -180,7 +180,7 @@ class when_an_non_empty_string_is_asserted_on
Catch.Exception(() => a_string.ShouldNotBeNull()).ShouldBeNull();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(TypeExtensions))]
class when_a_type_assertion_fails
{
static string a_string;
Expand All @@ -197,7 +197,7 @@ class when_a_type_assertion_fails
exception.Message.ShouldStartWith("Should be of type System.Int32");
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EqualityExtensions))]
class when_checking_if_an_item_matches_a_func
{
static Exception exception;
Expand All @@ -214,7 +214,7 @@ class when_checking_if_an_item_matches_a_func
exception.ShouldBeNull();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EqualityExtensions))]
class when_checking_if_an_item_matches_a_func_and_the_check_fails
{
static Exception exception;
Expand All @@ -231,7 +231,7 @@ class when_checking_if_an_item_matches_a_func_and_the_check_fails
exception.Message.ShouldContain("Should match expression [x => (x > 50)], but does not.");
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EqualityExtensions))]
class when_comparing_different_classes_with_equals_for_equality
{
static Franc five_francs;
Expand All @@ -243,7 +243,7 @@ class when_comparing_different_classes_with_equals_for_equality
five_francs.Equals(new Money(5, "CHF")).ShouldBeTrue();
}

[Subject(typeof(ShouldExtensionMethods))]
[Subject(typeof(EqualityExtensions))]
class when_comparing_different_classes_with_should_equal_for_equality
{
static Franc five_francs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Globalization;
using System.Threading;

namespace Machine.Specifications.Should.Specs.Utility.Internal
namespace Machine.Specifications.Should.Specs.Formatting
{
class when_comparing_two_long_unequal_strings_with_difference_in_the_middle
{
Expand Down
Loading