mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
25 lines
601 B
C#
25 lines
601 B
C#
using System;
|
|
using NUnit.Framework;
|
|
using mRemoteNG.App;
|
|
using log4net;
|
|
|
|
namespace mRemoteNGTests.App
|
|
{
|
|
[TestFixture]
|
|
public class LoggerTests
|
|
{
|
|
[Test]
|
|
public void GetSingletonInstanceReturnsAnILogObject()
|
|
{
|
|
Assert.That(Logger.GetSingletonInstance(), Is.InstanceOf<ILog>());
|
|
}
|
|
|
|
[Test]
|
|
public void SingletonOnlyEverReturnsTheSameInstance()
|
|
{
|
|
ILog log1 = Logger.GetSingletonInstance();
|
|
ILog log2 = Logger.GetSingletonInstance();
|
|
Assert.That(log1, Is.EqualTo(log2));
|
|
}
|
|
}
|
|
} |