public void missing_type_implies_anything()
        {
            Component component = new Component(ComponentName.Parse("A"), null, null);
            Assert.That(component.Type, Is.EqualTo(ComponentTypes.Anything));

            component = new Component(ComponentName.Parse("A"), string.Empty, null);
            Assert.That(component.Type, Is.EqualTo(ComponentTypes.Anything));
        }
 public static void AssemblyNotInContext(IStatusAppender s, Component componentName, AssemblyName name)
 {
     Status warn = new Status(
         componentName, Severity.Warning, SR.AssemblyNotInContext(name), FileLocation.Empty);
     s.Append(warn);
 }
 public static IStatus AppendError(this IStatusAppender source, Component component, string message, FileLocation location)
 {
     return AppendCore(source, new Status(component, Severity.Error, message, location));
 }
 public static IStatus AppendError(this IStatusAppender source, Component component, Exception exception, FileLocation location)
 {
     return AppendCore(source, new Status(component, Severity.Error, exception, location));
 }
 public static IStatus Append(this IStatusAppender source, Component component, string message, Exception exception, Severity level, FileLocation location, int errorCode)
 {
     return AppendCore(source, new Status(component, level, message, exception, location, errorCode));
 }
 public static IStatus Append(this IStatusAppender source, Component component, string message, Exception exception, FileLocation location)
 {
     return AppendCore(source, new Status(component, message, exception, location));
 }