blob: e9c016dfaba214bf5cd83af2a5360894b4a632c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using NUnit.Framework;
namespace Mono.Linker.Tests
{
[TestFixture]
public class MessageContainerTests
{
[Test]
public void MSBuildFormat ()
{
var msg = MessageContainer.CreateErrorMessage ("text", 1000);
Assert.AreEqual ("illinker: error IL1000: text", msg.ToMSBuildString ());
msg = MessageContainer.CreateWarningMessage ("message", 2001, origin: new MessageOrigin ("logtest", 1, 1));
Assert.AreEqual ("logtest(1,1): warning IL2001: message", msg.ToMSBuildString ());
msg = MessageContainer.CreateInfoMessage ("log test");
Assert.AreEqual ("illinker: log test", msg.ToMSBuildString ());
}
}
}
|