blob: 0350ff9839002a7f303e36909a4a2d253d648b11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
using System;
using System.Collections.Generic;
namespace MonoDevelop.Ide.Editor
{
public interface IUnitTestMarker : ITextLineMarker
{
UnitTestLocation UnitTest { get; }
void UpdateState ();
}
public abstract class UnitTestMarkerHost
{
public abstract Xwt.Drawing.Image GetStatusIcon (string unitTestIdentifier, string caseId = null);
public abstract bool IsFailure (string unitTestIdentifier, string caseId = null);
public abstract string GetMessage (string unitTestIdentifier, string caseId = null);
public abstract bool HasResult (string unitTestIdentifier, string caseId = null);
public abstract void PopupContextMenu (UnitTestLocation unitTest, int x, int y);
}
public class UnitTestLocation
{
public int Offset { get; set; }
public bool IsFixture { get; set; }
public string UnitTestIdentifier { get; set; }
public bool IsIgnored { get; set; }
public List<string> TestCases = new List<string> ();
public UnitTestLocation (int offset)
{
Offset = offset;
}
}
}
|