forked from VSoftTechnologies/DUnitX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DUnitX.Banner.pas
47 lines (32 loc) · 1.13 KB
/
DUnitX.Banner.pas
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
39
40
41
42
43
44
45
46
47
unit DUnitX.Banner;
interface
procedure ShowBanner;
implementation
uses
DUnitX.ConsoleWriter.Base,
DUnitX.IoC;
procedure ShowBanner;
var
consoleWriter : IDUnitXConsoleWriter;
procedure WriteLine(const value : string);
begin
if consoleWriter <> nil then
consoleWriter.WriteLn(value)
else
System.Writeln(value);
end;
begin
consoleWriter := TDUnitXIoC.DefaultContainer.Resolve<IDUnitXConsoleWriter>();
if consoleWriter <> nil then
consoleWriter.SetColour(ccBrightWhite, ccDefault);
WriteLine('**********************************************************************');
WriteLine('* DUnitX - (c) 2013 Vincent Parrett *');
WriteLine('* vincent@finalbuilder.com *');
WriteLine('* *');
WriteLine('* License - http://www.apache.org/licenses/LICENSE-2.0 *');
WriteLine('**********************************************************************');
WriteLine('');
if consoleWriter <> nil then
consoleWriter.SetColour(ccDefault);
end;
end.