Skip to content

Commit

Permalink
making tests language-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
blairconrad committed Mar 30, 2015
1 parent 9fa7761 commit 07f50d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Source/FakeItEasy.IntegrationTests/TypeCatalogueTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public void Should_warn_of_duplicate_input_assemblies_with_different_paths()
Path.Combine(@"..\..\..\FakeItEasy.IntegrationTests.External\bin", currentDirectoryName));

var expectedMessageFormat =
@"*Warning: FakeItEasy failed to load assembly '*FakeItEasy.IntegrationTests.External\bin\{0}\FakeItEasy.IntegrationTests.External.dll' while scanning for extension points. Any IArgumentValueFormatters, IDummyFactories, and IFakeConfigurators in that assembly will not be available.
API restriction: The assembly '*FakeItEasy.IntegrationTests.External\bin\{0}\FakeItEasy.IntegrationTests.External.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain.*";
@"*Warning: FakeItEasy failed to load assembly '*FakeItEasy.IntegrationTests.External\bin\{0}\FakeItEasy.IntegrationTests.External.dll' while scanning for extension points. Any IArgumentValueFormatters, IDummyFactories, and IFakeConfigurators in that assembly will not be available.*";

var expectedMessage = string.Format(CultureInfo.InvariantCulture, expectedMessageFormat, currentDirectoryName);
string actualMessage;
Expand Down
2 changes: 1 addition & 1 deletion Source/FakeItEasy.Specs/CreationSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public class when_faking_a_class_whose_constructor_throws
() => exception.Message.Should().Contain("I don't like being constructed.");

It should_throw_an_exception_whose_message_includes_original_exception_stack_trace =
() => exception.Message.Should().Contain("at FakeItEasy.Specs.ClassWhoseConstructorThrows..ctor()");
() => exception.Message.Should().Contain("FakeItEasy.Specs.ClassWhoseConstructorThrows..ctor()");
}
}

0 comments on commit 07f50d8

Please sign in to comment.