Skip to content

Commit

Permalink
Created a test variable declaratively.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodmosaic committed Sep 26, 2014
1 parent 8f3f465 commit 1758161
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions AtomEventStore.UnitTests/TypeResolutionTableTests.cs
Expand Up @@ -58,11 +58,9 @@ public void VerifyGuardClauses(GuardClauseAssertion assertion)

[Theory, AutoAtomData]
public void ResolveThrowsWhenInputCanNotBeMappedToProperType(
TypeResolutionTable sut)
TypeResolutionTable sut,
TypeResolutionEntry notMapped)
{
var dummyType = typeof(Version);
var notMapped =
new TypeResolutionEntry("not", "mapped", dummyType);
Assert.False(sut.Entries.Any(x =>
x.LocalName == notMapped.LocalName &&
x.XmlNamespace == notMapped.XmlNamespace));
Expand All @@ -73,11 +71,9 @@ public void VerifyGuardClauses(GuardClauseAssertion assertion)

[Theory, AutoAtomData]
public void ResolveThrowsForUnmappedLocalNameAndMappedXmlNamespace(
[FavorArrays]TypeResolutionTable sut)
[FavorArrays]TypeResolutionTable sut,
TypeResolutionEntry notMapped)
{
var dummyType = typeof(Version);
var notMapped =
new TypeResolutionEntry("not", "mapped", dummyType);
Assert.False(sut.Entries.Any(x =>
x.LocalName == notMapped.LocalName &&
x.XmlNamespace == notMapped.XmlNamespace));
Expand All @@ -89,11 +85,9 @@ public void VerifyGuardClauses(GuardClauseAssertion assertion)

[Theory, AutoAtomData]
public void ResolveThrowsForMappedLocalNameAndUnmappedXmlNamespace(
[FavorArrays]TypeResolutionTable sut)
[FavorArrays]TypeResolutionTable sut,
TypeResolutionEntry notMapped)
{
var dummyType = typeof(Version);
var notMapped =
new TypeResolutionEntry("not", "mapped", dummyType);
Assert.False(sut.Entries.Any(x =>
x.LocalName == notMapped.LocalName &&
x.XmlNamespace == notMapped.XmlNamespace));
Expand Down

0 comments on commit 1758161

Please sign in to comment.