Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'feature/one-exception'

  • Loading branch information...
commit acdff51957d09ecdde78b80dadedc068103a92b9 2 parents 9ffdd16 + c9622f4
@juanplopes authored
View
4 src/FluentCodeMetrics.Specs/Samples.cs
@@ -43,7 +43,7 @@ public DateTime Foo(DateTime arg)
}
}
- class SingleProperty
+ public class SingleProperty
{
public DateTime Foo { get; set; }
}
@@ -65,7 +65,7 @@ public class SingleField
// ReSharper restore InconsistentNaming
}
- class OneException
+ public class OneException
{
public void Foo()
{
View
14 src/FluentCodeMetrics.Tests/CeExtensionsTests.cs
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.