Skip to content

Commit

Permalink
Merge branch 'feature/one-exception'
Browse files Browse the repository at this point in the history
  • Loading branch information
juanplopes committed May 3, 2012
2 parents 9ffdd16 + c9622f4 commit acdff51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FluentCodeMetrics.Specs/Samples.cs
Expand Up @@ -43,7 +43,7 @@ public DateTime Foo(DateTime arg)
}
}

class SingleProperty
public class SingleProperty
{
public DateTime Foo { get; set; }
}
Expand All @@ -65,7 +65,7 @@ public class SingleField
// ReSharper restore InconsistentNaming
}

class OneException
public class OneException
{
public void Foo()
{
Expand Down
14 changes: 14 additions & 0 deletions src/FluentCodeMetrics.Tests/CeExtensionsTests.cs
Expand Up @@ -92,6 +92,20 @@ public void GetReferencedTypes_SingleArgCtor()
typeof(Type)
);
}

[Test]
public void GetReferencedTypes_OneException()
{
typeof(Samples.OneException).GetReferencedTypes()
.Should().Have.SameValuesAs(
typeof(object),
typeof(Exception), // argument type
typeof(string),
typeof(bool),
typeof(int),
typeof(Type)
);
}
}
// ReSharper restore InconsistentNaming
}

0 comments on commit acdff51

Please sign in to comment.