diff --git a/TestStack.ConventionTests/Reporting/TypeDataFormatter.cs b/TestStack.ConventionTests/Reporting/TypeDataFormatter.cs
index 49a3c76..a0561a3 100644
--- a/TestStack.ConventionTests/Reporting/TypeDataFormatter.cs
+++ b/TestStack.ConventionTests/Reporting/TypeDataFormatter.cs
@@ -1,6 +1,7 @@
namespace TestStack.ConventionTests.Reporting
{
using System;
+ using TestStack.ConventionTests.ConventionData;
public class TypeDataFormatter : IReportDataFormatter
{
@@ -11,16 +12,15 @@ public bool CanFormat(object data)
public string FormatString(object data)
{
- return ((Type)data).FullName;
+ return ((Type)data).ToTypeNameString();
}
public string FormatHtml(object data)
{
var type = ((Type)data);
- var ns = type.Namespace;
- if (ns == null)
- return type.Name;
- return string.Format("{0}.{1}", ns, type.Name);
+ var oldValue = string.Format("{0}.", type.Namespace);
+ var newValue = string.Format("{0}.", type.Namespace);
+ return string.Format("{0}", FormatString(data).Replace(oldValue, newValue));
}
}
}
\ No newline at end of file