DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb-nunit
Deveel.Data.Diagnostics
LoggerTests.cs
Go to the documentation of this file.
1
//
2
// Copyright 2010-2014 Deveel
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
using
System
;
16
using
System
.Linq;
17
18
using
Deveel
.
Data
.
Services
;
19
20
using
NUnit
.Framework;
21
22
namespace
Deveel
.Data.Diagnostics {
23
[TestFixture]
24
public
class
LoggerTests
:
ContextBasedTest
{
25
/*
26
TODO:
27
[Test]
28
public void LogErrorToConsole() {
29
var routers = SystemContext.ResolveAllServices<IEventRouter>().ToList();
30
Assert.IsNotEmpty(routers);
31
Assert.AreEqual(1, routers.Count);
32
Assert.IsInstanceOf<LogEventRouter>(routers[0]);
33
34
var loggers = SystemContext.ResolveAllServices<IEventLogger>().ToList();
35
Assert.IsNotEmpty(loggers);
36
Assert.AreEqual(1, loggers.Count);
37
Assert.IsInstanceOf<ConsoleEventLogger>(loggers[0]);
38
39
Assert.DoesNotThrow(() => Query.RegisterError("Error one"));
40
}
41
*/
42
}
43
}
Deveel
System
Definition:
NonSerializedAttribute.cs:3
NUnit
Deveel.Data.ContextBasedTest
Definition:
ContextBasedTest.cs:25
Deveel.Data.Services
Definition:
IRegistrationConfiguration.cs:19
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Diagnostics.LoggerTests
Definition:
LoggerTests.cs:24
Generated by
1.8.10